Skip to content

Commit

Permalink
Fix syntax highlighting for generic type
Browse files Browse the repository at this point in the history
```
const head = <T,>(arr: T[]): T => arr[0]
```

#86
  • Loading branch information
yuezk authored Oct 16, 2019
1 parent 89c30c0 commit ee5b2df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion after/syntax/jsx_pretty.vim
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ syntax region jsxElement

" detect jsx region
syntax region jsxRegion
\ start=+\(\(\_[([,?:=+\-*/<>{}]\|&&\|||\|=>\|\<return\|\<default\|\<await\|\<yield\)\_s*\)\@<=<\_s*\(>\|\z(\(script\)\@!\<[_\$A-Za-z][-:_\.\$0-9A-Za-z]*\>\)\(\_s*\([-+*)\]}&|?]\|/\([/*]\|\_s*>\)\@!\)\)\@!\)+
\ start=+\(\(\_[([,?:=+\-*/<>{}]\|&&\|||\|=>\|\<return\|\<default\|\<await\|\<yield\)\_s*\)\@<=<\_s*\(>\|\z(\(script\)\@!\<[_\$A-Za-z][-:_\.\$0-9A-Za-z]*\>\)\(\_s*\([-+*)\]}&|?,]\|/\([/*]\|\_s*>\)\@!\)\)\@!\)+
\ end=++
\ contains=jsxElement

Expand Down

0 comments on commit ee5b2df

Please sign in to comment.