Skip to content

Commit 2202e58

Browse files
authored
Merge pull request #645 from remiprev/fix/js-flow-type-custom-regex
Fix jsFlowTypeCustom regex to allow dots
2 parents 3bb395c + fcdc1dc commit 2202e58

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)