@@ -59,6 +59,7 @@ syntax case match
59
59
syn match typeScriptSpecial " \\\d\d\d\|\\ ."
60
60
syn region typeScriptStringD start =+ "+ skip =+ \\\\\|\\ "+ end =+ "\| $+ contains =typeScriptSpecial,@htmlPreproc
61
61
syn region typeScriptStringS start =+ '+ skip =+ \\\\\|\\ '+ end =+ '\| $+ contains =typeScriptSpecial,@htmlPreproc
62
+ syn region typeScriptStringB start =+ `+ skip =+ \\\\\|\\ `+ end =+ `+ contains =typeScriptSpecial,@htmlPreproc
62
63
63
64
syn match typeScriptSpecialCharacter " '\\ .'"
64
65
syn match typeScriptNumber " -\=\<\d\+ L\=\>\| 0[xX][0-9a-fA-F]\+\> "
@@ -70,6 +71,8 @@ syn region typeScriptRegexpString start=+/[^/*]+me=e-1 skip=+\\\\\|\\/+ end=+/[g
70
71
" syntax match typeScriptNumber /\<-\=\d\+L\=\>\|\<0[xX]\x\+\>/
71
72
syntax match typeScriptFloat / \< -\=\% (\d\+\.\d\+\|\d\+\.\|\.\d\+\)\% ([eE][+-]\=\d\+\)\=\> /
72
73
" syntax match typeScriptLabel /\(?\s*\)\@<!\<\w\+\(\s*:\)\@=/
74
+
75
+ syn match typeScriptDecorators / @\( [_$a-zA-Z][_$a-zA-Z0-9]*\.\) *[_$a-zA-Z][_$a-zA-Z0-9]*\> /
73
76
" }}}
74
77
" " typeScript Prototype"{{{
75
78
syntax keyword typeScriptPrototype contained prototype
@@ -176,7 +179,7 @@ syntax match typeScriptDotNotation "\.style\." nextgroup=typeScriptCssStyles
176
179
177
180
178
181
" " Code blocks
179
- syntax cluster typeScriptAll contains =typeScriptComment,typeScriptLineComment,typeScriptDocComment,typeScriptStringD,typeScriptStringS,typeScriptRegexpString,typeScriptNumber,typeScriptFloat,typeScriptLabel,typeScriptSource,typeScriptType,typeScriptOperator,typeScriptBoolean,typeScriptNull,typeScriptFuncKeyword,typeScriptConditional,typeScriptGlobal,typeScriptRepeat,typeScriptBranch,typeScriptStatement,typeScriptGlobalObjects,typeScriptMessage,typeScriptIdentifier,typeScriptExceptions,typeScriptReserved,typeScriptDeprecated,typeScriptDomErrNo,typeScriptDomNodeConsts,typeScriptHtmlEvents,typeScriptDotNotation,typeScriptBrowserObjects,typeScriptDOMObjects,typeScriptAjaxObjects,typeScriptPropietaryObjects,typeScriptDOMMethods,typeScriptHtmlElemProperties,typeScriptDOMProperties,typeScriptEventListenerKeywords,typeScriptEventListenerMethods,typeScriptAjaxProperties,typeScriptAjaxMethods,typeScriptFuncArg
182
+ syntax cluster typeScriptAll contains =typeScriptComment,typeScriptLineComment,typeScriptDocComment,typeScriptStringD,typeScriptStringS,typeScriptStringB, typeScriptRegexpString,typeScriptNumber,typeScriptFloat,typeScriptDecorators ,typeScriptLabel,typeScriptSource,typeScriptType,typeScriptOperator,typeScriptBoolean,typeScriptNull,typeScriptFuncKeyword,typeScriptConditional,typeScriptGlobal,typeScriptRepeat,typeScriptBranch,typeScriptStatement,typeScriptGlobalObjects,typeScriptMessage,typeScriptIdentifier,typeScriptExceptions,typeScriptReserved,typeScriptDeprecated,typeScriptDomErrNo,typeScriptDomNodeConsts,typeScriptHtmlEvents,typeScriptDotNotation,typeScriptBrowserObjects,typeScriptDOMObjects,typeScriptAjaxObjects,typeScriptPropietaryObjects,typeScriptDOMMethods,typeScriptHtmlElemProperties,typeScriptDOMProperties,typeScriptEventListenerKeywords,typeScriptEventListenerMethods,typeScriptAjaxProperties,typeScriptAjaxMethods,typeScriptFuncArg
180
183
181
184
if main_syntax == " typescript"
182
185
syntax sync clear
@@ -242,6 +245,7 @@ if version >= 508 || !exists("did_typeScript_syn_inits")
242
245
HiLink typeScriptDocParam Function
243
246
HiLink typeScriptStringS String
244
247
HiLink typeScriptStringD String
248
+ HiLink typeScriptStringB String
245
249
HiLink typeScriptRegexpString String
246
250
HiLink typeScriptGlobal Constant
247
251
HiLink typeScriptCharacter Character
@@ -265,6 +269,7 @@ if version >= 508 || !exists("did_typeScript_syn_inits")
265
269
HiLink typeScriptNull Type
266
270
HiLink typeScriptNumber Number
267
271
HiLink typeScriptFloat Number
272
+ HiLink typeScriptDecorators Special
268
273
HiLink typeScriptBoolean Boolean
269
274
HiLink typeScriptLabel Label
270
275
HiLink typeScriptSpecial Special
0 commit comments