Skip to content

Commit fcdc1dc

Browse files
committed
Fix jsFlowTypeCustom regex to allow dots
1 parent 3bb395c commit fcdc1dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extras/flow.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ syntax region jsFlowParens contained matchgroup=jsFlowNoise start=/(/
66
syntax match jsFlowNoise contained /[:;,<>]/
77
syntax keyword jsFlowType contained boolean number string null void any mixed JSON array function object array bool class
88
syntax keyword jsFlowTypeof contained typeof skipempty skipempty nextgroup=jsFlowTypeCustom,jsFlowType
9-
syntax match jsFlowTypeCustom contained /\k*/ skipwhite skipempty nextgroup=jsFlowGroup
9+
syntax match jsFlowTypeCustom contained /[0-9a-zA-Z_.]*/ skipwhite skipempty nextgroup=jsFlowGroup
1010
syntax region jsFlowGroup contained matchgroup=jsFlowNoise start=/</ end=/>/ contains=@jsFlowCluster
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

0 commit comments

Comments
 (0)