File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ syntax match jsFlowNoise contained /[:;,<>]/
12
12
syntax cluster jsFlowCluster contains =jsFlowType,jsFlowArray,jsFlowObject,jsFlowNoise
13
13
syntax keyword jsFlowStorageClass contained const var let
14
14
syntax region jsFlowParenRegion contained start =/ :\s *(/ end =/ )\% (\s *:\)\@ =/ oneline contains =@jsFlowCluster skipwhite skipempty nextgroup =jsObjectValue
15
+ syntax region jsFlowClass contained matchgroup =jsFlowNoise start =/ </ end =/ >/ oneline contains =@jsFlowCluster skipwhite skipempty nextgroup =jsClassBlock
15
16
16
17
if version >= 508 || ! exists (" did_javascript_syn_inits" )
17
18
if version < 508
@@ -26,6 +27,7 @@ if version >= 508 || !exists("did_javascript_syn_inits")
26
27
HiLink jsFlowDeclareBlock PreProc
27
28
HiLink jsFlowObject PreProc
28
29
HiLink jsFlowParenRegion PreProc
30
+ HiLink jsFlowClass PreProc
29
31
HiLink jsFlowType Type
30
32
HiLink jsFlowDeclareKeyword Type
31
33
HiLink jsFlowNoise Noise
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ exe 'syntax match jsArrowFunction /=>/ skipwhite skipempty nextgroup=jsFunc
165
165
syntax keyword jsClassKeywords contained extends class
166
166
syntax match jsClassNoise contained / \. /
167
167
syntax match jsClassMethodDefinitions contained / \% (get\| set\| static\)\% ( \k\+\)\@ =/ skipwhite skipempty nextgroup =jsFuncName,jsClassProperty
168
- syntax match jsClassDefinition / \< class\>\% ( [a-zA-Z_$][0-9a-zA-Z_$ \n .]*\) */ contains =jsClassKeywords,jsClassNoise skipwhite skipempty nextgroup =jsClassBlock
168
+ syntax match jsClassDefinition / \< class\>\% ( [a-zA-Z_$][0-9a-zA-Z_$ \n .]*\) */ contains =jsClassKeywords,jsClassNoise skipwhite skipempty nextgroup =jsClassBlock,jsFlowClass
169
169
syntax match jsDecorator contained " @" nextgroup =jsDecoratorFunction
170
170
syntax match jsDecoratorFunction contained " [a-zA-Z_][a-zA-Z0-9_.]*"
171
171
syntax match jsClassProperty contained / \< [0-9a-zA-Z_$]*\>\(\s *=\)\@ =/ skipwhite skipempty nextgroup =jsClassValue
You can’t perform that action at this time.
0 commit comments