summaryrefslogtreecommitdiffstats
path: root/syntax/yajs/es6-promise.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/yajs/es6-promise.vim')
-rw-r--r--syntax/yajs/es6-promise.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/syntax/yajs/es6-promise.vim b/syntax/yajs/es6-promise.vim
new file mode 100644
index 00000000..be94a4c6
--- /dev/null
+++ b/syntax/yajs/es6-promise.vim
@@ -0,0 +1,6 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1
+
+syntax keyword javascriptGlobal Promise nextgroup=javascriptGlobalPromiseDot,javascriptFuncCallArg
+syntax match javascriptGlobalPromiseDot /\./ contained nextgroup=javascriptPromiseStaticMethod
+
+endif