JSX - Support vim-jsx-pretty and improve YATS syntax (#198)

* Initial work supporting maxmellon/vim-jsx-pretty

* adding purple for variable declarations

* feat: vim-jsx-pretty syntax support javascript/javascriptreact

* feat: allow typescript.tsx in typescript.vim

* feat: support vim-jsx-pretty in .tsx/typescriptreact

* fix: remove changes outside scope

* fix: return yats to original

* feat: update vim-jsx-pretty support to match expected colors

Co-authored-by: Guillermo Velasquez <guillermo.velasquez@gmail.com>
This commit is contained in:
Renato Augusto Gama dos Santos 2020-07-06 10:10:08 -03:00 committed by GitHub
parent 3916fb2daf
commit 10932ddaaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 3 deletions

View file

@ -1,4 +1,4 @@
if dracula#should_abort('javascript')
if dracula#should_abort('javascript', 'javascriptreact', 'javascript.jsx')
finish
endif
@ -22,4 +22,16 @@ hi! link jsTemplateBraces Special
"}}}
" maxmellon/vim-jsx-pretty {{{
hi! link jsxTag Keyword
hi! link jsxTagName Keyword
hi! link jsxComponentName Type
hi! link jsxCloseTag Type
hi! link jsxAttrib DraculaGreenItalic
hi! link jsxCloseString Identifier
hi! link jsxOpenPunct Identifier
" }}}
" vim: fdm=marker ts=2 sts=2 sw=2 fdl=0:

View file

@ -0,0 +1 @@
runtime! syntax/javascript.vim

View file

@ -1,4 +1,4 @@
if dracula#should_abort('typescript', 'typescriptreact')
if dracula#should_abort('typescript', 'typescriptreact', 'typescript.tsx')
finish
endif

View file

@ -8,3 +8,15 @@ hi! link tsxAttrib DraculaGreenItalic
hi! link tsxEqual Operator
hi! link tsxIntrinsicTagName Keyword
hi! link tsxTagName Type
" maxmellon/vim-jsx-pretty {{{
hi! link jsxTag Keyword
hi! link jsxTagName Keyword
hi! link jsxComponentName Type
hi! link jsxCloseTag Type
hi! link jsxAttrib DraculaGreenItalic
hi! link jsxCloseString Identifier
hi! link jsxOpenPunct Identifier
" }}}