From 8f8c9edba37310d17e59a625b177ec6a37c07035 Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Wed, 16 Oct 2019 14:57:04 +0800 Subject: [PATCH] Fix syntax highlighting for generic type ``` const head = (arr: T[]): T => arr[0] ``` #86 --- after/syntax/jsx_pretty.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/after/syntax/jsx_pretty.vim b/after/syntax/jsx_pretty.vim index 0660e4f..0a1ee13 100644 --- a/after/syntax/jsx_pretty.vim +++ b/after/syntax/jsx_pretty.vim @@ -36,7 +36,7 @@ syntax region jsxElement " detect jsx region syntax region jsxRegion - \ start=+\(\(\_[([,?:=+\-*/<>{}]\|&&\|||\|=>\|\\|\z(\(script\)\@!\<[_\$A-Za-z][-:_\.\$0-9A-Za-z]*\>\)\(\_s*\([-+*)\]}&|?]\|/\([/*]\|\_s*>\)\@!\)\)\@!\)+ + \ start=+\(\(\_[([,?:=+\-*/<>{}]\|&&\|||\|=>\|\\|\z(\(script\)\@!\<[_\$A-Za-z][-:_\.\$0-9A-Za-z]*\>\)\(\_s*\([-+*)\]}&|?,]\|/\([/*]\|\_s*>\)\@!\)\)\@!\)+ \ end=++ \ contains=jsxElement