summaryrefslogtreecommitdiffstats
path: root/syntax/yajs/es6-math.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/yajs/es6-math.vim')
-rw-r--r--syntax/yajs/es6-math.vim6
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