Update runtime files.
This commit is contained in:
@ -1,8 +1,15 @@
|
||||
" Vim syntax file
|
||||
" Language: Matlab
|
||||
" Maintainer: Preben 'Peppe' Guldberg <peppe-vim@wielders.org>
|
||||
" Maintainer: Maurizio Tranchero - maurizio.tranchero@gmail.com
|
||||
" Credits: Preben 'Peppe' Guldberg <peppe-vim@wielders.org>
|
||||
" Original author: Mario Eusebio
|
||||
" Last Change: 30 May 2003
|
||||
" Change History:
|
||||
" Sat Jul 25 16:14:55 CEST 2009
|
||||
" - spell check enabled only for comments (thanks to James Vega)
|
||||
"
|
||||
" Tue Apr 21 10:03:31 CEST 2009
|
||||
" - added object oriented support
|
||||
" - added multi-line comments %{ ...\n... %}
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
@ -16,6 +23,9 @@ syn keyword matlabStatement return
|
||||
syn keyword matlabLabel case switch
|
||||
syn keyword matlabConditional else elseif end if otherwise
|
||||
syn keyword matlabRepeat do for while
|
||||
" MT_ADDON - added exception-specific keywords
|
||||
syn keyword matlabExceptions try catch
|
||||
syn keyword matlabOO classdef properties events methods
|
||||
|
||||
syn keyword matlabTodo contained TODO
|
||||
|
||||
@ -31,7 +41,8 @@ syn match matlabLineContinuation "\.\{3}"
|
||||
"syn match matlabIdentifier "\<\a\w*\>"
|
||||
|
||||
" String
|
||||
syn region matlabString start=+'+ end=+'+ oneline
|
||||
" MT_ADDON - added 'skip' in order to deal with 'tic' escaping sequence
|
||||
syn region matlabString start=+'+ end=+'+ oneline skip=+''+ contains=@Spell
|
||||
|
||||
" If you don't like tabs
|
||||
syn match matlabTab "\t"
|
||||
@ -50,7 +61,10 @@ syn match matlabTransposeOperator "[])a-zA-Z0-9.]'"lc=1
|
||||
|
||||
syn match matlabSemicolon ";"
|
||||
|
||||
syn match matlabComment "%.*$" contains=matlabTodo,matlabTab
|
||||
syn match matlabComment "%.*$" contains=matlabTodo,matlabTab,@Spell
|
||||
" MT_ADDON - correctly highlights words after '...' as comments
|
||||
syn match matlabComment "\.\.\..*$" contains=matlabTodo,matlabTab,@Spell
|
||||
syn region matlabMultilineComment start=+%{+ end=+%}+ contains=matlabTodo,matlabTab,@Spell
|
||||
|
||||
syn keyword matlabOperator break zeros default margin round ones rand
|
||||
syn keyword matlabOperator ceil floor size clear zeros eye mean std cov
|
||||
@ -75,10 +89,11 @@ if version >= 508 || !exists("did_matlab_syntax_inits")
|
||||
endif
|
||||
|
||||
HiLink matlabTransposeOperator matlabOperator
|
||||
HiLink matlabOperator Operator
|
||||
HiLink matlabLineContinuation Special
|
||||
HiLink matlabOperator Operator
|
||||
HiLink matlabLineContinuation Special
|
||||
HiLink matlabLabel Label
|
||||
HiLink matlabConditional Conditional
|
||||
HiLink matlabExceptions Conditional
|
||||
HiLink matlabRepeat Repeat
|
||||
HiLink matlabTodo Todo
|
||||
HiLink matlabString String
|
||||
@ -86,12 +101,14 @@ if version >= 508 || !exists("did_matlab_syntax_inits")
|
||||
HiLink matlabTransposeOther Identifier
|
||||
HiLink matlabNumber Number
|
||||
HiLink matlabFloat Float
|
||||
HiLink matlabFunction Function
|
||||
HiLink matlabFunction Function
|
||||
HiLink matlabError Error
|
||||
HiLink matlabImplicit matlabStatement
|
||||
HiLink matlabImplicit matlabStatement
|
||||
HiLink matlabStatement Statement
|
||||
HiLink matlabOO Statement
|
||||
HiLink matlabSemicolon SpecialChar
|
||||
HiLink matlabComment Comment
|
||||
HiLink matlabMultilineComment Comment
|
||||
|
||||
HiLink matlabArithmeticOperator matlabOperator
|
||||
HiLink matlabRelationalOperator matlabOperator
|
||||
|
||||
Reference in New Issue
Block a user