diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-11-04 09:04:28 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-11-04 09:04:28 +0100 |
commit | 4e95df7c7e12cb76e781f2dacf1c07f8984cce58 (patch) | |
tree | af9230137ec342d4bed0a68a9ccb49ed3303b3d0 /syntax/tsx.vim | |
parent | 31c55b85a03d96252bba14d64911cc78a20369a1 (diff) | |
download | vim-polyglot-4e95df7c7e12cb76e781f2dacf1c07f8984cce58.tar.gz vim-polyglot-4e95df7c7e12cb76e781f2dacf1c07f8984cce58.zip |
Update
Diffstat (limited to '')
-rw-r--r-- | syntax/typescriptreact.vim (renamed from syntax/tsx.vim) | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/syntax/tsx.vim b/syntax/typescriptreact.vim index a869ee2a..7d55769b 100644 --- a/syntax/tsx.vim +++ b/syntax/typescriptreact.vim @@ -1,10 +1,10 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 if !exists("main_syntax") - if exists("b:current_syntax") && b:current_syntax != 'typescript' + if exists("b:current_syntax") finish endif - let main_syntax = 'typescript.tsx' + let main_syntax = 'typescriptreact' endif syntax region tsxTag @@ -121,6 +121,8 @@ syntax region tsxEscJs \ end=+}+ \ extend +runtime syntax/common.vim + syntax cluster typescriptExpression add=tsxRegion,tsxFragment highlight def link tsxTag htmlTag @@ -136,9 +138,8 @@ highlight def link tsxEscJs tsxEscapeJs highlight def link tsxCloseTag htmlTag highlight def link tsxCloseString Identifier -let b:current_syntax = "typescript.tsx" -if main_syntax == 'typescript.tsx' +let b:current_syntax = "typescriptreact" +if main_syntax == 'typescriptreact' unlet main_syntax endif - endif |