File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ syntax match jsFlowNoise contained /[:;,<>]/
1212syntax cluster jsFlowCluster contains =jsFlowType,jsFlowArray,jsFlowObject,jsFlowNoise
1313syntax keyword jsFlowStorageClass contained const var let
1414syntax 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
1516
1617if version >= 508 || ! exists (" did_javascript_syn_inits" )
1718 if version < 508
@@ -26,6 +27,8 @@ if version >= 508 || !exists("did_javascript_syn_inits")
2627 HiLink jsFlowDeclareBlock PreProc
2728 HiLink jsFlowObject PreProc
2829 HiLink jsFlowParenRegion PreProc
30+ HiLink jsFlowClass PreProc
31+ HiLink jsFlowClassProperty jsClassProperty
2932 HiLink jsFlowType Type
3033 HiLink jsFlowDeclareKeyword Type
3134 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
165165syntax keyword jsClassKeywords contained extends class
166166syntax match jsClassNoise contained / \. /
167167syntax 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
169169syntax match jsDecorator contained " @" nextgroup =jsDecoratorFunction
170170syntax match jsDecoratorFunction contained " [a-zA-Z_][a-zA-Z0-9_.]*"
171171syntax match jsClassProperty contained / \< [0-9a-zA-Z_$]*\>\(\s *=\)\@ =/ skipwhite skipempty nextgroup =jsClassValue
You can’t perform that action at this time.
0 commit comments