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:
parent
3916fb2daf
commit
10932ddaaf
4 changed files with 28 additions and 3 deletions
|
@ -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:
|
||||
|
|
1
after/syntax/javascriptreact.vim
Normal file
1
after/syntax/javascriptreact.vim
Normal file
|
@ -0,0 +1 @@
|
|||
runtime! syntax/javascript.vim
|
|
@ -1,4 +1,4 @@
|
|||
if dracula#should_abort('typescript', 'typescriptreact')
|
||||
if dracula#should_abort('typescript', 'typescriptreact', 'typescript.tsx')
|
||||
finish
|
||||
endif
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
" }}}
|
||||
|
|
Loading…
Reference in a new issue