Skip to content

Commit 1785664

Browse files
committed
Fixed another maybe case
1 parent c7dca1b commit 1785664

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

extras/flow.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ syntax region jsFlowGroup contained matchgroup=jsFlowNoise start=/</ e
1111
syntax region jsFlowArrowArguments contained matchgroup=jsFlowNoise start=/(/ end=/)\%(\s*=>\)\@=/ oneline skipwhite skipempty nextgroup=jsFlowArrow contains=@jsFlowCluster
1212
syntax match jsFlowArrow contained /=>/ skipwhite skipempty nextgroup=jsFlowType,jsFlowTypeCustom,jsFlowParens
1313
syntax match jsFlowMaybe contained /?/ skipwhite skipempty nextgroup=jsFlowType,jsFlowTypeCustom,jsFlowParens,jsFlowArrowArguments
14+
syntax match jsFlowObjectKey contained /[0-9a-zA-Z_$?]*\(\s*:\)\@=/ contains=jsFunctionKey,jsFlowMaybe skipwhite skipempty nextgroup=jsObjectValue containedin=jsObject
1415

1516
syntax match jsFlowReturn contained /:\s*/ contains=jsFlowNoise skipwhite skipempty nextgroup=@jsFlowReturnCluster
1617
syntax region jsFlowReturnObject contained matchgroup=jsFlowNoise start=/{/ end=/}/ contains=@jsFlowCluster skipwhite skipempty nextgroup=jsFuncBlock
@@ -77,5 +78,6 @@ if version >= 508 || !exists("did_javascript_syn_inits")
7778
HiLink jsFlowModule PreProc
7879
HiLink jsFlowInterface PreProc
7980
HiLink jsFlowNoise Noise
81+
HiLink jsFlowObjectKey jsObjectKey
8082
delcommand HiLink
8183
endif

0 commit comments

Comments
 (0)