Skip to content

Commit 9ae77ce

Browse files
jezamadeus
authored andcommitted
Highlight Flow opaque keyboard
1 parent c0a5e4c commit 9ae77ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extras/flow.vim

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

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

0 commit comments

Comments
 (0)