aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/matlab.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-05-01 15:18:34 +0200
committerGitHub <noreply@github.com>2017-05-01 15:18:34 +0200
commita2c2fa68c1077be0a6f026f7cb1aeedeee47e39b (patch)
tree0d394eace71c9339cc5de16c419fcc39bb0adcad /runtime/syntax/matlab.vim
parent5d73a6e5dfbd1a7ce27888e7a7ac1c402da9dfc8 (diff)
parentfa1ee0ac73ab0fbbd246783f42e2df2c2d9280d6 (diff)
downloadrneovim-a2c2fa68c1077be0a6f026f7cb1aeedeee47e39b.tar.gz
rneovim-a2c2fa68c1077be0a6f026f7cb1aeedeee47e39b.tar.bz2
rneovim-a2c2fa68c1077be0a6f026f7cb1aeedeee47e39b.zip
Merge #6625 from justinmk/vim-runtime
Diffstat (limited to 'runtime/syntax/matlab.vim')
-rw-r--r--runtime/syntax/matlab.vim10
1 files changed, 7 insertions, 3 deletions
diff --git a/runtime/syntax/matlab.vim b/runtime/syntax/matlab.vim
index 92ffbbc1ed..5228bb5c43 100644
--- a/runtime/syntax/matlab.vim
+++ b/runtime/syntax/matlab.vim
@@ -1,11 +1,13 @@
" Vim syntax file
" Language: Matlab
-" Maintainer: Maurizio Tranchero - maurizio(.)tranchero(@)gmail(.)com
+" Maintainer: Alex Burka <vim@alexburka.com>
" Credits: Preben 'Peppe' Guldberg <peppe-vim@wielders.org>
+" Maurizio Tranchero - maurizio(.)tranchero(@)gmail(.)com
" Original author: Mario Eusebio
-" Last Change: Wed Jan 13 11:12:34 CET 2010
-" sinh added to matlab implicit commands
+" Last Change: Mon Jan 23 2017
+" added support for cell mode
" Change History:
+" - now highlights cell-mode separator comments
" - 'global' and 'persistent' keyword are now recognized
" quit when a syntax file was already loaded
@@ -60,6 +62,7 @@ syn match matlabComment "%.*$" contains=matlabTodo,matlabTab
" MT_ADDON - correctly highlights words after '...' as comments
syn match matlabComment "\.\.\..*$" contains=matlabTodo,matlabTab
syn region matlabMultilineComment start=+%{+ end=+%}+ contains=matlabTodo,matlabTab
+syn match matlabCellComment "^%%.*$"
syn keyword matlabOperator break zeros default margin round ones rand
syn keyword matlabOperator ceil floor size clear zeros eye mean std cov
@@ -96,6 +99,7 @@ hi def link matlabOO Statement
hi def link matlabSemicolon SpecialChar
hi def link matlabComment Comment
hi def link matlabMultilineComment Comment
+hi def link matlabCellComment Todo
hi def link matlabScope Type
hi def link matlabArithmeticOperator matlabOperator