From c0ff2a472a597277a6e07a721f00125e68c001f3 Mon Sep 17 00:00:00 2001 From: Derek P Sifford Date: Tue, 8 May 2018 15:02:10 -0400 Subject: [PATCH] add typescriptreact support for yats.vim --- after/syntax/typescript.vim | 1 + after/syntax/typescriptreact.vim | 10 ++++++++++ colors/dracula.vim | 2 +- doc/dracula.txt | 2 +- 4 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 after/syntax/typescriptreact.vim diff --git a/after/syntax/typescript.vim b/after/syntax/typescript.vim index dcb25fc..6d839da 100644 --- a/after/syntax/typescript.vim +++ b/after/syntax/typescript.vim @@ -3,6 +3,7 @@ if ! exists('b:current_syntax') || b:current_syntax !=# 'typescript' endif hi! link typescriptArrayMethod DraculaCyan +hi! link typescriptArrowFunc Operator hi! link typescriptArrowFuncArg DraculaOrangeItalic hi! link typescriptAssign Operator hi! link typescriptBinaryOp Operator diff --git a/after/syntax/typescriptreact.vim b/after/syntax/typescriptreact.vim new file mode 100644 index 0000000..efc2e48 --- /dev/null +++ b/after/syntax/typescriptreact.vim @@ -0,0 +1,10 @@ +if ! exists('b:current_syntax') || b:current_syntax !=# 'typescriptreact' + finish +endif + +runtime syntax/typescript.vim + +hi! link jsxTag Keyword +hi! link jsxCloseTag jsxTag +hi! link jsxCloseString jsxTag +hi! link jsxAttrib DraculaGreenItalic diff --git a/colors/dracula.vim b/colors/dracula.vim index a3073ee..666a82c 100644 --- a/colors/dracula.vim +++ b/colors/dracula.vim @@ -1,4 +1,4 @@ -" Dracula Theme: v1.4.0 {{{ +" Dracula Theme: v1.5.0 {{{ " " https://github.com/zenorocha/dracula-theme " diff --git a/doc/dracula.txt b/doc/dracula.txt index 9ca68f6..7194994 100644 --- a/doc/dracula.txt +++ b/doc/dracula.txt @@ -1,4 +1,4 @@ -*dracula.txt* For Vim version 8 Last change: 2018 April 02 +*dracula.txt* For Vim version 8 Last change: 2018 May 08 *dracula* *vim-dracula* |\ ,, ~