diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-06 14:32:07 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-06 14:32:07 +0200 |
commit | 84ec4eedcdd2892249b5369f91a6dd1d12fef2fc (patch) | |
tree | 6c9806851123656af2b71f6c6f5d89649442909c /syntax/basic/reserved.vim | |
parent | 66b769328c4511b2273f01c70de971c41f6964dd (diff) | |
download | vim-polyglot-84ec4eedcdd2892249b5369f91a6dd1d12fef2fc.tar.gz vim-polyglot-84ec4eedcdd2892249b5369f91a6dd1d12fef2fc.zip |
Switch typescript provider, closes #428v4.0.0
Diffstat (limited to 'syntax/basic/reserved.vim')
-rw-r--r-- | syntax/basic/reserved.vim | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/syntax/basic/reserved.vim b/syntax/basic/reserved.vim new file mode 100644 index 00000000..cf6467c2 --- /dev/null +++ b/syntax/basic/reserved.vim @@ -0,0 +1,35 @@ +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1 + finish +endif + +syntax cluster typescriptStrings contains=typescriptProp,typescriptString,typescriptTemplate,@typescriptComments,typescriptDocComment,typescriptRegexpString,typescriptPropertyName + +syntax cluster typescriptNoReserved contains= + \ @typescriptStrings, + \ @typescriptDocs, + \ @typescriptComments, + \ shellbang, + \ typescriptObjectLiteral, + \ typescriptObjectLabel, + \ typescriptClassBlock, + \ @typescriptType, + \ typescriptCall + +"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Keywords +syntax keyword typescriptReserved containedin=ALLBUT,@typescriptNoReserved break case catch const continue +syntax keyword typescriptReserved containedin=ALLBUT,@typescriptNoReserved debugger delete do else export +syntax keyword typescriptReserved containedin=ALLBUT,@typescriptNoReserved extends finally for if +"import,typescriptRegexpString,typescriptPropertyName +syntax keyword typescriptReserved containedin=ALLBUT,@typescriptNoReserved in instanceof let new return super +syntax keyword typescriptReserved containedin=ALLBUT,@typescriptNoReserved static switch throw try typeof +syntax keyword typescriptReserved containedin=ALLBUT,@typescriptNoReserved void while with yield + +syntax keyword typescriptReserved containedin=ALLBUT,@typescriptNoReserved implements package protected +syntax keyword typescriptReserved containedin=ALLBUT,@typescriptNoReserved interface private public readonly abstract +syntax keyword typescriptReserved containedin=ALLBUT,@typescriptNoReserved byte char double final float goto int +syntax keyword typescriptReserved containedin=ALLBUT,@typescriptNoReserved long native short synchronized transient +syntax keyword typescriptReserved containedin=ALLBUT,@typescriptNoReserved volatile + +syntax keyword typescriptReserved containedin=ALLBUT,@typescriptNoReserved class +syntax keyword typescriptReserved containedin=ALLBUT,@typescriptNoReserved var +syntax keyword typescriptReserved containedin=ALLBUT,@typescriptNoReserved function |