Skip to content

Commit 008e989

Browse files
committed
Trying out some flow tweaks
1 parent e4870b4 commit 008e989

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

extras/flow.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ syntax match jsFlowWildcardReturn contained /*/ skipwhite skipempty nextgroup=
3030
syntax region jsFlowFunctionGroup contained matchgroup=jsFlowNoise start=/</ end=/>/ contains=@jsFlowCluster skipwhite skipempty nextgroup=jsFuncArgs
3131
syntax region jsFlowClassGroup contained matchgroup=jsFlowNoise start=/</ end=/>/ contains=@jsFlowCluster skipwhite skipempty nextgroup=jsClassBlock
3232

33-
syntax region jsFlowTypeStatement start=/type\%(\s\+\k\)\@=/ end=/=\@=/ contains=jsFlowTypeOperator oneline skipwhite skipempty nextgroup=jsFlowTypeValue keepend
34-
syntax region jsFlowTypeValue contained start=/=/ end=/[;\n]/ contains=@jsFlowCluster,jsFlowGroup,jsFlowMaybe
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
3535
syntax match jsFlowTypeOperator contained /=/ containedin=jsFlowTypeValue
3636
syntax match jsFlowTypeOperator contained /=/
3737
syntax keyword jsFlowTypeKeyword contained type

0 commit comments

Comments
 (0)