Skip to content

Commit f3fe4d8

Browse files
committed
Don't let <T> interfere with Flow generics
1 parent 5903561 commit f3fe4d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

after/syntax/jsx.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ syn region jsxChild contained start=+{+ end=++ contains=jsBlock,javascriptBlock
4747
" and generic Flow type annotations (http://flowtype.org/).
4848
syn region jsxRegion
4949
\ contains=@Spell,@XMLSyntax,jsxRegion,jsxChild,jsBlock,javascriptBlock
50-
\ start=+\%(<\|\w\)\@<!<\z([a-zA-Z][a-zA-Z0-9:\-.]*\>:\@!\)+
50+
\ start=+\%(<\|\w\)\@<!<\z([a-zA-Z][a-zA-Z0-9:\-.]*\>[:,]\@!\)\([^>]*>(\)\@!+
5151
\ skip=+<!--\_.\{-}-->+
5252
\ end=+</\z1\_\s\{-}>+
5353
\ end=+/>+

0 commit comments

Comments
 (0)