File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ syntax region jsFlowTypeStatement start=/type/ end=/=/ onelin
22syntax region jsFlowDeclareBlock start =/ declare/ end =/ [;\n ]/ oneline contains =jsFlow,jsFlowDeclareKeyword,jsFlowStorageClass
33syntax region jsFlow start =/ :/ end =/ \% (\% ([),=;\n ]\| {\% (.*}\)\@ !\|\% ({.*}\)\@ <=\s *{\)\@ =\| void\) / contains =@jsFlowCluster oneline skipwhite skipempty nextgroup =jsFuncBlock
44syntax region jsFlowReturn contained start =/ :/ end =/ \% (\S\s *\% ({\% (.*}\)\@ !\)\@ =\|\n\) / contains =@jsFlowCluster oneline skipwhite skipempty nextgroup =jsFuncBlock keepend
5- syntax region jsFlowTypeObject contained start =/ {/ end =/ }/ contains =jsFlowTypeKey skipwhite skipempty nextgroup =jsFunctionBlock extend
5+ syntax region jsFlowTypeObject contained matchgroup = jsFlowNoise start =/ {/ end =/ }/ contains =jsFlowTypeKey,jsFlowNoise skipwhite skipempty nextgroup =jsFunctionBlock extend
66syntax match jsFlowTypeKey contained / \< [0-9a-zA-Z_$?]*\>\(\s *:\)\@ =/ skipwhite skipempty nextgroup =jsFlowTypeValue
7- syntax region jsFlowTypeValue contained matchgroup =jsFlowNoise start =/ :/ end =/ [,}]/ contains =@jsFlowCluster
7+ syntax region jsFlowTypeValue contained matchgroup =jsFlowNoise start =/ :/ end =/ [,}]\@ = / contains =@jsFlowCluster
88syntax region jsFlowObject contained matchgroup =jsFlowNoise start =/ {/ end =/ }/ oneline contains =@jsFlowCluster
99syntax region jsFlowArray contained matchgroup =jsFlowNoise start =/ \[ / end =/ \] / oneline contains =@jsFlowCluster
1010syntax region jsFlowArrow contained matchgroup =jsFlowNoise start =/ (/ end =/ )\s *=>/ oneline contains =@jsFlowCluster
You can’t perform that action at this time.
0 commit comments