Mercurial > vim
comparison runtime/syntax/matlab.vim @ 17036:235cbf491430
Update runtime files
commit https://github.com/vim/vim/commit/12ee7ff00b91d852e060bb24951d1c94239863eb
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 10 22:47:40 2019 +0200
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 10 Jun 2019 23:00:08 +0200 |
parents | 523cd59d6db0 |
children |
comparison
equal
deleted
inserted
replaced
17035:a4b23aa54dca | 17036:235cbf491430 |
---|---|
2 " Language: Matlab | 2 " Language: Matlab |
3 " Maintainer: Alex Burka <vim@alexburka.com> | 3 " Maintainer: Alex Burka <vim@alexburka.com> |
4 " Credits: Preben 'Peppe' Guldberg <peppe-vim@wielders.org> | 4 " Credits: Preben 'Peppe' Guldberg <peppe-vim@wielders.org> |
5 " Maurizio Tranchero - maurizio(.)tranchero(@)gmail(.)com | 5 " Maurizio Tranchero - maurizio(.)tranchero(@)gmail(.)com |
6 " Original author: Mario Eusebio | 6 " Original author: Mario Eusebio |
7 " Last Change: Mon Jan 23 2017 | 7 " Last Change: June 10 2019 |
8 " added support for cell mode | 8 " added highlight rule for double-quoted string literals |
9 " Change History: | 9 " Change History: |
10 " - double-quoted string literals added | |
10 " - now highlights cell-mode separator comments | 11 " - now highlights cell-mode separator comments |
11 " - 'global' and 'persistent' keyword are now recognized | 12 " - 'global' and 'persistent' keyword are now recognized |
12 | 13 |
13 " quit when a syntax file was already loaded | 14 " quit when a syntax file was already loaded |
14 if exists("b:current_syntax") | 15 if exists("b:current_syntax") |
38 "syn match matlabIdentifier "\<\a\w*\>" | 39 "syn match matlabIdentifier "\<\a\w*\>" |
39 | 40 |
40 " String | 41 " String |
41 " MT_ADDON - added 'skip' in order to deal with 'tic' escaping sequence | 42 " MT_ADDON - added 'skip' in order to deal with 'tic' escaping sequence |
42 syn region matlabString start=+'+ end=+'+ oneline skip=+''+ | 43 syn region matlabString start=+'+ end=+'+ oneline skip=+''+ |
44 syn region matlabStringArray start=+"+ end=+"+ oneline skip=+""+ | |
43 | 45 |
44 " If you don't like tabs | 46 " If you don't like tabs |
45 syn match matlabTab "\t" | 47 syn match matlabTab "\t" |
46 | 48 |
47 " Standard numbers | 49 " Standard numbers |
85 hi def link matlabConditional Conditional | 87 hi def link matlabConditional Conditional |
86 hi def link matlabExceptions Conditional | 88 hi def link matlabExceptions Conditional |
87 hi def link matlabRepeat Repeat | 89 hi def link matlabRepeat Repeat |
88 hi def link matlabTodo Todo | 90 hi def link matlabTodo Todo |
89 hi def link matlabString String | 91 hi def link matlabString String |
92 hi def link matlabStringArray String | |
90 hi def link matlabDelimiter Identifier | 93 hi def link matlabDelimiter Identifier |
91 hi def link matlabTransposeOther Identifier | 94 hi def link matlabTransposeOther Identifier |
92 hi def link matlabNumber Number | 95 hi def link matlabNumber Number |
93 hi def link matlabFloat Float | 96 hi def link matlabFloat Float |
94 hi def link matlabFunction Function | 97 hi def link matlabFunction Function |