Mercurial > vim
comparison runtime/syntax/matlab.vim @ 10048:43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 30 23:26:57 2016 +0200
Updated runtime files. Remove version checks for Vim older than 6.0.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 30 Aug 2016 23:30:09 +0200 |
parents | fd09a9c8468e |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
6 " Last Change: Wed Jan 13 11:12:34 CET 2010 | 6 " Last Change: Wed Jan 13 11:12:34 CET 2010 |
7 " sinh added to matlab implicit commands | 7 " sinh added to matlab implicit commands |
8 " Change History: | 8 " Change History: |
9 " - 'global' and 'persistent' keyword are now recognized | 9 " - 'global' and 'persistent' keyword are now recognized |
10 | 10 |
11 " For version 5.x: Clear all syntax items | 11 " quit when a syntax file was already loaded |
12 " For version 6.x: Quit when a syntax file was already loaded | 12 if exists("b:current_syntax") |
13 if version < 600 | |
14 syntax clear | |
15 elseif exists("b:current_syntax") | |
16 finish | 13 finish |
17 endif | 14 endif |
18 | 15 |
19 syn keyword matlabStatement return | 16 syn keyword matlabStatement return |
20 syn keyword matlabLabel case switch | 17 syn keyword matlabLabel case switch |
74 | 71 |
75 syn match matlabError "-\=\<\d\+\.\d\+\.[^*/\\^]" | 72 syn match matlabError "-\=\<\d\+\.\d\+\.[^*/\\^]" |
76 syn match matlabError "-\=\<\d\+\.\d\+[eEdD][-+]\=\d\+\.\([^*/\\^]\)" | 73 syn match matlabError "-\=\<\d\+\.\d\+[eEdD][-+]\=\d\+\.\([^*/\\^]\)" |
77 | 74 |
78 " Define the default highlighting. | 75 " Define the default highlighting. |
79 " For version 5.7 and earlier: only when not done already | 76 " Only when an item doesn't have highlighting yet |
80 " For version 5.8 and later: only when an item doesn't have highlighting yet | 77 command -nargs=+ HiLink hi def link <args> |
81 if version >= 508 || !exists("did_matlab_syntax_inits") | |
82 if version < 508 | |
83 let did_matlab_syntax_inits = 1 | |
84 command -nargs=+ HiLink hi link <args> | |
85 else | |
86 command -nargs=+ HiLink hi def link <args> | |
87 endif | |
88 | 78 |
89 HiLink matlabTransposeOperator matlabOperator | 79 HiLink matlabTransposeOperator matlabOperator |
90 HiLink matlabOperator Operator | 80 HiLink matlabOperator Operator |
91 HiLink matlabLineContinuation Special | 81 HiLink matlabLineContinuation Special |
92 HiLink matlabLabel Label | 82 HiLink matlabLabel Label |
93 HiLink matlabConditional Conditional | 83 HiLink matlabConditional Conditional |
94 HiLink matlabExceptions Conditional | 84 HiLink matlabExceptions Conditional |
95 HiLink matlabRepeat Repeat | 85 HiLink matlabRepeat Repeat |
96 HiLink matlabTodo Todo | 86 HiLink matlabTodo Todo |
97 HiLink matlabString String | 87 HiLink matlabString String |
98 HiLink matlabDelimiter Identifier | 88 HiLink matlabDelimiter Identifier |
99 HiLink matlabTransposeOther Identifier | 89 HiLink matlabTransposeOther Identifier |
100 HiLink matlabNumber Number | 90 HiLink matlabNumber Number |
101 HiLink matlabFloat Float | 91 HiLink matlabFloat Float |
102 HiLink matlabFunction Function | 92 HiLink matlabFunction Function |
103 HiLink matlabError Error | 93 HiLink matlabError Error |
104 HiLink matlabImplicit matlabStatement | 94 HiLink matlabImplicit matlabStatement |
105 HiLink matlabStatement Statement | 95 HiLink matlabStatement Statement |
106 HiLink matlabOO Statement | 96 HiLink matlabOO Statement |
107 HiLink matlabSemicolon SpecialChar | 97 HiLink matlabSemicolon SpecialChar |
108 HiLink matlabComment Comment | 98 HiLink matlabComment Comment |
109 HiLink matlabMultilineComment Comment | 99 HiLink matlabMultilineComment Comment |
110 HiLink matlabScope Type | 100 HiLink matlabScope Type |
111 | 101 |
112 HiLink matlabArithmeticOperator matlabOperator | 102 HiLink matlabArithmeticOperator matlabOperator |
113 HiLink matlabRelationalOperator matlabOperator | 103 HiLink matlabRelationalOperator matlabOperator |
114 HiLink matlabLogicalOperator matlabOperator | 104 HiLink matlabLogicalOperator matlabOperator |
115 | 105 |
116 "optional highlighting | 106 "optional highlighting |
117 "HiLink matlabIdentifier Identifier | 107 "HiLink matlabIdentifier Identifier |
118 "HiLink matlabTab Error | 108 "HiLink matlabTab Error |
119 | 109 |
120 delcommand HiLink | 110 delcommand HiLink |
121 endif | |
122 | 111 |
123 let b:current_syntax = "matlab" | 112 let b:current_syntax = "matlab" |
124 | 113 |
125 "EOF vim: ts=8 noet tw=100 sw=8 sts=0 | 114 "EOF vim: ts=8 noet tw=100 sw=8 sts=0 |