mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-16 07:23:48 -05:00
Better support for es6 syntax
This commit is contained in:
6
syntax/yajs/es6-object.vim
Normal file
6
syntax/yajs/es6-object.vim
Normal file
@@ -0,0 +1,6 @@
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1
|
||||
|
||||
syntax keyword javascriptGlobal Object nextgroup=javascriptGlobalObjectDot,javascriptFuncCallArg
|
||||
syntax match javascriptGlobalObjectDot /\./ contained nextgroup=javascriptObjectStaticMethod
|
||||
|
||||
endif
|
||||
Reference in New Issue
Block a user