@@ -10,7 +10,7 @@ syntax match jsFlowTypeCustom contained /[0-9a-zA-Z_.]*/ skipwhite skipemp
1010syntax region jsFlowGroup contained matchgroup =jsFlowNoise start =/ </ end =/ >/ contains =@jsFlowCluster
1111syntax region jsFlowArrowArguments contained matchgroup =jsFlowNoise start =/ (/ end =/ )\% (\s *=>\)\@ =/ oneline skipwhite skipempty nextgroup =jsFlowArrow contains =@jsFlowCluster
1212syntax match jsFlowArrow contained / =>/ skipwhite skipempty nextgroup =jsFlowType,jsFlowTypeCustom,jsFlowParens
13- syntax match jsFlowMaybe contained / ?/ skipwhite skipempty nextgroup =jsFlowType,jsFlowTypeCustom,jsFlowParens,jsFlowArrowArguments
13+ syntax match jsFlowMaybe contained / ?/ skipwhite skipempty nextgroup =jsFlowType,jsFlowTypeCustom,jsFlowParens,jsFlowArrowArguments,jsFlowObject,jsFlowReturnObject
1414syntax match jsFlowObjectKey contained / [0-9a-zA-Z_$?]*\(\s *:\)\@ =/ contains =jsFunctionKey,jsFlowMaybe skipwhite skipempty nextgroup =jsObjectValue containedin =jsObject
1515syntax match jsFlowOrOperator contained / |/ skipwhite skipempty nextgroup =@jsFlowCluster
1616syntax keyword jsFlowImportType contained type skipwhite skipempty nextgroup =jsModuleAsterisk,jsModuleKeyword,jsModuleGroup
@@ -29,7 +29,7 @@ syntax match jsFlowWildcardReturn contained /*/ skipwhite skipempty nextgroup=
2929syntax region jsFlowFunctionGroup contained matchgroup =jsFlowNoise start =/ </ end =/ >/ contains =@jsFlowCluster skipwhite skipempty nextgroup =jsFuncArgs
3030syntax region jsFlowClassGroup contained matchgroup =jsFlowNoise start =/ </ end =/ >/ contains =@jsFlowCluster skipwhite skipempty nextgroup =jsClassBlock
3131
32- syntax region jsFlowTypeStatement start =/ type/ end =/ =\@ =/ contains =jsFlowTypeOperator oneline skipwhite skipempty nextgroup =jsFlowTypeValue keepend
32+ syntax region jsFlowTypeStatement start =/ type\% ( \s\+\k\)\@ = / end =/ =\@ =/ contains =jsFlowTypeOperator oneline skipwhite skipempty nextgroup =jsFlowTypeValue keepend
3333syntax region jsFlowTypeValue contained start =/ =/ end =/ [;\n ]/ contains =@jsExpression,jsFlowGroup,jsFlowMaybe
3434syntax match jsFlowTypeOperator contained / =/
3535syntax keyword jsFlowTypeKeyword contained type
0 commit comments