summaryrefslogtreecommitdiffstats
path: root/syntax/yats/ecma-402.vim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--syntax/yats/ecma-402.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/syntax/yats/ecma-402.vim b/syntax/yats/ecma-402.vim
new file mode 100644
index 00000000..ae5a806e
--- /dev/null
+++ b/syntax/yats/ecma-402.vim
@@ -0,0 +1,10 @@
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1
+ finish
+endif
+
+syntax keyword typescriptGlobal containedin=typescriptIdentifierName Intl
+syntax keyword typescriptIntlMethod contained Collator DateTimeFormat NumberFormat nextgroup=typescriptFuncCallArg
+syntax keyword typescriptIntlMethod contained PluralRules nextgroup=typescriptFuncCallArg
+syntax cluster props add=typescriptIntlMethod
+if exists("did_typescript_hilink") | HiLink typescriptIntlMethod Keyword
+endif