summaryrefslogtreecommitdiffstats
path: root/syntax/basic
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-10-24 18:52:18 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-10-24 18:52:18 +0200
commit8e61708b4527072aa9250deb2c4cf7a56e3f3b0a (patch)
tree73e3bf7897429cee96eb36f7f291d50fbbe11ca9 /syntax/basic
parent3c148e9ef5a303a599320eb64e608392db82eeb0 (diff)
downloadvim-polyglot-8e61708b4527072aa9250deb2c4cf7a56e3f3b0a.tar.gz
vim-polyglot-8e61708b4527072aa9250deb2c4cf7a56e3f3b0a.zip
Use vim-polyglot only as fallback to other plugins, fixes #580
Diffstat (limited to 'syntax/basic')
-rw-r--r--syntax/basic/class.vim5
-rw-r--r--syntax/basic/cluster.vim5
-rw-r--r--syntax/basic/decorator.vim5
-rw-r--r--syntax/basic/doc.vim5
-rw-r--r--syntax/basic/function.vim5
-rw-r--r--syntax/basic/identifiers.vim5
-rw-r--r--syntax/basic/keyword.vim5
-rw-r--r--syntax/basic/literal.vim5
-rw-r--r--syntax/basic/members.vim5
-rw-r--r--syntax/basic/object.vim5
-rw-r--r--syntax/basic/patch.vim5
-rw-r--r--syntax/basic/reserved.vim5
-rw-r--r--syntax/basic/symbols.vim5
-rw-r--r--syntax/basic/type.vim5
14 files changed, 70 insertions, 0 deletions
diff --git a/syntax/basic/class.vim b/syntax/basic/class.vim
index 303d2077..dea703aa 100644
--- a/syntax/basic/class.vim
+++ b/syntax/basic/class.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/basic/class.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
"don't add typescriptMembers to nextgroup, let outer scope match it
diff --git a/syntax/basic/cluster.vim b/syntax/basic/cluster.vim
index 8538c517..f5eb59d1 100644
--- a/syntax/basic/cluster.vim
+++ b/syntax/basic/cluster.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/basic/cluster.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
"Block VariableStatement EmptyStatement ExpressionStatement IfStatement IterationStatement ContinueStatement BreakStatement ReturnStatement WithStatement LabelledStatement SwitchStatement ThrowStatement TryStatement DebuggerStatement
diff --git a/syntax/basic/decorator.vim b/syntax/basic/decorator.vim
index 2a7a1dd1..7f5456cd 100644
--- a/syntax/basic/decorator.vim
+++ b/syntax/basic/decorator.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/basic/decorator.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax match typescriptDecorator /@\([_$a-zA-Z][_$a-zA-Z0-9]*\.\)*[_$a-zA-Z][_$a-zA-Z0-9]*\>/
diff --git a/syntax/basic/doc.vim b/syntax/basic/doc.vim
index 50f03e29..2bf5d614 100644
--- a/syntax/basic/doc.vim
+++ b/syntax/basic/doc.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/basic/doc.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
"Syntax coloring for Node.js shebang line
diff --git a/syntax/basic/function.vim b/syntax/basic/function.vim
index e1743ab5..ac94b9a1 100644
--- a/syntax/basic/function.vim
+++ b/syntax/basic/function.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/basic/function.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptAsyncFuncKeyword async
diff --git a/syntax/basic/identifiers.vim b/syntax/basic/identifiers.vim
index 6a7ba4b0..b03df011 100644
--- a/syntax/basic/identifiers.vim
+++ b/syntax/basic/identifiers.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/basic/identifiers.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax cluster afterIdentifier contains=
diff --git a/syntax/basic/keyword.vim b/syntax/basic/keyword.vim
index a810b545..ddb4e8a1 100644
--- a/syntax/basic/keyword.vim
+++ b/syntax/basic/keyword.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/basic/keyword.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
"Import
diff --git a/syntax/basic/literal.vim b/syntax/basic/literal.vim
index 89d96bb0..6f092fcc 100644
--- a/syntax/basic/literal.vim
+++ b/syntax/basic/literal.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/basic/literal.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
"Syntax in the JavaScript code
diff --git a/syntax/basic/members.vim b/syntax/basic/members.vim
index 343559b9..7362eaf9 100644
--- a/syntax/basic/members.vim
+++ b/syntax/basic/members.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/basic/members.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax keyword typescriptConstructor contained constructor
diff --git a/syntax/basic/object.vim b/syntax/basic/object.vim
index 90c75a0a..6f5d1f28 100644
--- a/syntax/basic/object.vim
+++ b/syntax/basic/object.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/basic/object.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax region typescriptObjectLiteral matchgroup=typescriptBraces
diff --git a/syntax/basic/patch.vim b/syntax/basic/patch.vim
index 5531db79..a2ebd1da 100644
--- a/syntax/basic/patch.vim
+++ b/syntax/basic/patch.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/basic/patch.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
" patch for generated code
diff --git a/syntax/basic/reserved.vim b/syntax/basic/reserved.vim
index 14ea7565..0cfb36ac 100644
--- a/syntax/basic/reserved.vim
+++ b/syntax/basic/reserved.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/basic/reserved.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
syntax cluster typescriptStrings contains=typescriptProp,typescriptString,typescriptTemplate,@typescriptComments,typescriptDocComment,typescriptRegexpString,typescriptPropertyName
diff --git a/syntax/basic/symbols.vim b/syntax/basic/symbols.vim
index 2799ed39..15490f80 100644
--- a/syntax/basic/symbols.vim
+++ b/syntax/basic/symbols.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/basic/symbols.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
" + - ^ ~
diff --git a/syntax/basic/type.vim b/syntax/basic/type.vim
index 02e78237..378ecafe 100644
--- a/syntax/basic/type.vim
+++ b/syntax/basic/type.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'syntax/basic/type.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
" Types