Skip to content

Commit 32a39ac

Browse files
committed
Potential bugfix for jsFlowTypeValue end match
1 parent 50c1357 commit 32a39ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extras/flow.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ syntax region jsFlowClassGroup contained matchgroup=jsFlowNoise start=/
3232
syntax region jsFlowClassFunctionGroup contained matchgroup=jsFlowNoise start=/</ end=/>/ contains=@jsFlowCluster skipwhite skipempty nextgroup=jsFuncArgs
3333

3434
syntax region jsFlowTypeStatement start=/\(opaque\s\+\)\?type\%(\s\+\k\)\@=/ end=/=\@=/ contains=jsFlowTypeOperator oneline skipwhite skipempty nextgroup=jsFlowTypeValue keepend
35-
syntax region jsFlowTypeValue contained matchgroup=jsFlowNoise start=/=/ end=/[\n;]/ contains=@jsFlowCluster,jsFlowGroup,jsFlowMaybe
35+
syntax region jsFlowTypeValue contained matchgroup=jsFlowNoise start=/=/ end=/\%(;\|\n\%(\s*|\)\@!\)/ contains=@jsFlowCluster,jsFlowGroup,jsFlowMaybe
3636
syntax match jsFlowTypeOperator contained /=/ containedin=jsFlowTypeValue
3737
syntax match jsFlowTypeOperator contained /=/
3838
syntax keyword jsFlowTypeKeyword contained type

0 commit comments

Comments
 (0)