summaryrefslogtreecommitdiffstats
path: root/syntax/yats/node.vim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--syntax/yats/node.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/syntax/yats/node.vim b/syntax/yats/node.vim
new file mode 100644
index 00000000..312c5fb8
--- /dev/null
+++ b/syntax/yats/node.vim
@@ -0,0 +1,13 @@
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1
+ finish
+endif
+
+syntax keyword typescriptNodeGlobal containedin=typescriptIdentifierName global process
+syntax keyword typescriptNodeGlobal containedin=typescriptIdentifierName console Buffer
+syntax keyword typescriptNodeGlobal containedin=typescriptIdentifierName module exports
+syntax keyword typescriptNodeGlobal containedin=typescriptIdentifierName setTimeout
+syntax keyword typescriptNodeGlobal containedin=typescriptIdentifierName clearTimeout
+syntax keyword typescriptNodeGlobal containedin=typescriptIdentifierName setInterval
+syntax keyword typescriptNodeGlobal containedin=typescriptIdentifierName clearInterval
+if exists("did_typescript_hilink") | HiLink typescriptNodeGlobal Structure
+endif