diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2015-07-19 18:57:00 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2015-07-19 18:57:00 +0200 |
commit | c925c92217920cc9963b725758f4829c219c0db7 (patch) | |
tree | a357e7c127c504ce80b47844539e4fe6840e5084 /syntax/yajs/es6-math.vim | |
parent | 852d25b307f8ebefc8b6c7d6022257fcfae880e2 (diff) | |
download | vim-polyglot-2.1.0.tar.gz vim-polyglot-2.1.0.zip |
Better support for es6 syntaxv2.1.0
Diffstat (limited to 'syntax/yajs/es6-math.vim')
-rw-r--r-- | syntax/yajs/es6-math.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/syntax/yajs/es6-math.vim b/syntax/yajs/es6-math.vim new file mode 100644 index 00000000..689e2299 --- /dev/null +++ b/syntax/yajs/es6-math.vim @@ -0,0 +1,6 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 + +syntax keyword javascriptGlobal Math nextgroup=javascriptGlobalMathDot,javascriptFuncCallArg +syntax match javascriptGlobalMathDot /\./ contained nextgroup=javascriptMathStaticProp,javascriptMathStaticMethod + +endif |