aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/matlab.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-08-02 19:22:23 +0200
committerGitHub <noreply@github.com>2019-08-02 19:22:23 +0200
commita270c33b3a49d7a47b1bb6e6b9eb2073d98e0602 (patch)
tree7561e413d75fdb008c2bdf81dc63f31806116d5c /runtime/syntax/matlab.vim
parent1aedb9ed00e40f54bb3303ab6d2da4a0f6e2fbb6 (diff)
parente2e220256e7e62b6b7df9ba65cd3fdf32390652b (diff)
downloadrneovim-a270c33b3a49d7a47b1bb6e6b9eb2073d98e0602.tar.gz
rneovim-a270c33b3a49d7a47b1bb6e6b9eb2073d98e0602.tar.bz2
rneovim-a270c33b3a49d7a47b1bb6e6b9eb2073d98e0602.zip
Merge #10675 from justinmk/vim-runtime
fix #10572
Diffstat (limited to 'runtime/syntax/matlab.vim')
-rw-r--r--runtime/syntax/matlab.vim7
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/syntax/matlab.vim b/runtime/syntax/matlab.vim
index 5228bb5c43..520280980a 100644
--- a/runtime/syntax/matlab.vim
+++ b/runtime/syntax/matlab.vim
@@ -4,9 +4,10 @@
" Credits: Preben 'Peppe' Guldberg <peppe-vim@wielders.org>
" Maurizio Tranchero - maurizio(.)tranchero(@)gmail(.)com
" Original author: Mario Eusebio
-" Last Change: Mon Jan 23 2017
-" added support for cell mode
+" Last Change: June 10 2019
+" added highlight rule for double-quoted string literals
" Change History:
+" - double-quoted string literals added
" - now highlights cell-mode separator comments
" - 'global' and 'persistent' keyword are now recognized
@@ -40,6 +41,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=+''+
+syn region matlabStringArray start=+"+ end=+"+ oneline skip=+""+
" If you don't like tabs
syn match matlabTab "\t"
@@ -87,6 +89,7 @@ hi def link matlabExceptions Conditional
hi def link matlabRepeat Repeat
hi def link matlabTodo Todo
hi def link matlabString String
+hi def link matlabStringArray String
hi def link matlabDelimiter Identifier
hi def link matlabTransposeOther Identifier
hi def link matlabNumber Number