mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
Updated runtime files.
This commit is contained in:
@@ -1,15 +1,10 @@
|
||||
" Vim syntax file
|
||||
" Language: Matlab
|
||||
" Maintainer: Maurizio Tranchero - maurizio.tranchero@gmail.com
|
||||
" Maintainer: Maurizio Tranchero - maurizio(.)tranchero(@)gmail(.)com
|
||||
" Credits: Preben 'Peppe' Guldberg <peppe-vim@wielders.org>
|
||||
" Original author: Mario Eusebio
|
||||
" 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... %}
|
||||
" Last Change: Wed Jan 13 11:12:34 CET 2010
|
||||
" - 'global' and 'persistent' keyword are now recognized
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
@@ -28,6 +23,7 @@ syn keyword matlabExceptions try catch
|
||||
syn keyword matlabOO classdef properties events methods
|
||||
|
||||
syn keyword matlabTodo contained TODO
|
||||
syn keyword matlabScope global persistent
|
||||
|
||||
" If you do not want these operators lit, uncommment them and the "hi link" below
|
||||
syn match matlabArithmeticOperator "[-+]"
|
||||
@@ -42,7 +38,7 @@ syn match matlabLineContinuation "\.\{3}"
|
||||
|
||||
" String
|
||||
" MT_ADDON - added 'skip' in order to deal with 'tic' escaping sequence
|
||||
syn region matlabString start=+'+ end=+'+ oneline skip=+''+ contains=@Spell
|
||||
syn region matlabString start=+'+ end=+'+ oneline skip=+''+
|
||||
|
||||
" If you don't like tabs
|
||||
syn match matlabTab "\t"
|
||||
@@ -61,10 +57,10 @@ syn match matlabTransposeOperator "[])a-zA-Z0-9.]'"lc=1
|
||||
|
||||
syn match matlabSemicolon ";"
|
||||
|
||||
syn match matlabComment "%.*$" contains=matlabTodo,matlabTab,@Spell
|
||||
syn match matlabComment "%.*$" contains=matlabTodo,matlabTab
|
||||
" 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 match matlabComment "\.\.\..*$" contains=matlabTodo,matlabTab
|
||||
syn region matlabMultilineComment start=+%{+ end=+%}+ contains=matlabTodo,matlabTab
|
||||
|
||||
syn keyword matlabOperator break zeros default margin round ones rand
|
||||
syn keyword matlabOperator ceil floor size clear zeros eye mean std cov
|
||||
@@ -109,6 +105,7 @@ if version >= 508 || !exists("did_matlab_syntax_inits")
|
||||
HiLink matlabSemicolon SpecialChar
|
||||
HiLink matlabComment Comment
|
||||
HiLink matlabMultilineComment Comment
|
||||
HiLink matlabScope Type
|
||||
|
||||
HiLink matlabArithmeticOperator matlabOperator
|
||||
HiLink matlabRelationalOperator matlabOperator
|
||||
|
Reference in New Issue
Block a user