From c925c92217920cc9963b725758f4829c219c0db7 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 19 Jul 2015 18:57:00 +0200 Subject: Better support for es6 syntax --- syntax/yajs/es6-regexp.vim | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 syntax/yajs/es6-regexp.vim (limited to 'syntax/yajs/es6-regexp.vim') diff --git a/syntax/yajs/es6-regexp.vim b/syntax/yajs/es6-regexp.vim new file mode 100644 index 00000000..dec47f4b --- /dev/null +++ b/syntax/yajs/es6-regexp.vim @@ -0,0 +1,6 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 + +syntax keyword javascriptGlobal RegExp nextgroup=javascriptGlobalRegExpDot,javascriptFuncCallArg +syntax match javascriptGlobalRegExpDot /\./ contained nextgroup=javascriptRegExpStaticProp + +endif -- cgit v1.2.3