Skip to content

Commit e4870b4

Browse files
committed
More fixes for flow
1 parent 0353342 commit e4870b4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

extras/flow.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ syntax region jsFlowDeclareBlock contained matchgroup=jsFlowNoise start=/{/ e
5050
syntax match jsFlowMaybe contained /?/
5151
syntax region jsFlowInterfaceBlock contained matchgroup=jsFlowNoise start=/{/ end=/}/ contains=jsObjectKey,jsObjectKeyString,jsObjectKeyComputed,jsObjectSeparator,jsObjectFuncName,jsObjectMethodType,jsGenerator,jsComment,jsObjectStringKey,jsSpreadExpression,jsFlowNoise keepend
5252

53-
syntax region jsFlowParenAnnotation contained start=/:/ end=/)\@=/ containedin=jsParen contains=@jsFlowCluster
53+
syntax region jsFlowParenAnnotation contained start=/:/ end=/[,=)]\@=/ containedin=jsParen contains=@jsFlowCluster
5454

5555
syntax cluster jsFlowReturnCluster contains=jsFlowNoise,jsFlowReturnObject,jsFlowReturnArray,jsFlowReturnKeyword,jsFlowReturnGroup,jsFlowReturnMaybe,jsFlowReturnOrOp,jsFlowWildcardReturn,jsFlowReturnArrow
5656
syntax cluster jsFlowCluster contains=jsFlowArray,jsFlowObject,jsFlowExactObject,jsFlowNoise,jsFlowTypeof,jsFlowType,jsFlowGroup,jsFlowArrowArguments,jsFlowMaybe,jsFlowParens,jsFlowOrOperator,jsFlowWildcard
@@ -99,5 +99,7 @@ if version >= 508 || !exists("did_javascript_syn_inits")
9999
HiLink jsFlowReturnOrOp jsFlowOrOperator
100100
HiLink jsFlowWildcard PreProc
101101
HiLink jsFlowWildcardReturn PreProc
102+
HiLink jsFlowImportType PreProc
103+
HiLink jsFlowTypeValue PreProc
102104
delcommand HiLink
103105
endif

0 commit comments

Comments
 (0)