|
1 | 1 | syntax region jsFlowDefinition contained start=/:/ end=/\%(\s*[,=;)\n]\)\@=/ contains=@jsFlowCluster containedin=jsParen |
2 | 2 | syntax region jsFlowArgumentDef contained start=/:/ end=/\%(\s*[,)]\|=>\@!\)\@=/ contains=@jsFlowCluster |
3 | | -syntax region jsFlowArray contained matchgroup=jsFlowNoise start=/\[/ end=/\]/ contains=@jsFlowCluster |
4 | | -syntax region jsFlowObject contained matchgroup=jsFlowNoise start=/{/ end=/}/ contains=@jsFlowCluster |
5 | | -syntax region jsFlowExactObject contained matchgroup=jsFlowNoise start=/{|/ end=/|}/ contains=@jsFlowCluster |
| 3 | +syntax region jsFlowArray contained matchgroup=jsFlowNoise start=/\[/ end=/\]/ contains=@jsFlowCluster,jsComment |
| 4 | +syntax region jsFlowObject contained matchgroup=jsFlowNoise start=/{/ end=/}/ contains=@jsFlowCluster,jsComment |
| 5 | +syntax region jsFlowExactObject contained matchgroup=jsFlowNoise start=/{|/ end=/|}/ contains=@jsFlowCluster,jsComment |
6 | 6 | syntax region jsFlowParens contained matchgroup=jsFlowNoise start=/(/ end=/)/ contains=@jsFlowCluster keepend |
7 | 7 | syntax match jsFlowNoise contained /[:;,<>]/ |
8 | 8 | syntax keyword jsFlowType contained boolean number string null void any mixed JSON array Function object array bool class |
@@ -30,8 +30,8 @@ syntax match jsFlowWildcardReturn contained /*/ skipwhite skipempty nextgroup= |
30 | 30 | syntax region jsFlowFunctionGroup contained matchgroup=jsFlowNoise start=/</ end=/>/ contains=@jsFlowCluster skipwhite skipempty nextgroup=jsFuncArgs |
31 | 31 | syntax region jsFlowClassGroup contained matchgroup=jsFlowNoise start=/</ end=/>/ contains=@jsFlowCluster skipwhite skipempty nextgroup=jsClassBlock |
32 | 32 |
|
33 | | -syntax region jsFlowTypeStatement start=/type\%(\s\+\k\)\@=/ end=/=\@=/ contains=jsFlowTypeOperator skipwhite skipempty nextgroup=jsFlowTypeValue keepend |
34 | | -syntax region jsFlowTypeValue contained start=/=/ end=/;/ contains=@jsFlowCluster,jsFlowGroup,jsFlowMaybe |
| 33 | +syntax region jsFlowTypeStatement start=/type\%(\s\+\k\)\@=/ end=/=\@=/ contains=jsFlowTypeOperator oneline skipwhite skipempty nextgroup=jsFlowTypeValue keepend |
| 34 | +syntax region jsFlowTypeValue contained matchgroup=jsFlowNoise start=/=/ end=/;/ contains=@jsFlowCluster,jsFlowGroup,jsFlowMaybe |
35 | 35 | syntax match jsFlowTypeOperator contained /=/ containedin=jsFlowTypeValue |
36 | 36 | syntax match jsFlowTypeOperator contained /=/ |
37 | 37 | syntax keyword jsFlowTypeKeyword contained type |
|
0 commit comments