summaryrefslogtreecommitdiffstats
path: root/extras/ngdoc.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-09-04 17:01:29 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2019-09-04 17:01:29 +0200
commite3024f21fca230b030fb2fe2fde4e768fb8205b3 (patch)
tree6f7b3e8d439338fc1e39d6c49e44eaec8218fe53 /extras/ngdoc.vim
parent31d757fc7b47eed785a64fb6128cc83dd99e0059 (diff)
downloadvim-polyglot-e3024f21fca230b030fb2fe2fde4e768fb8205b3.tar.gz
vim-polyglot-e3024f21fca230b030fb2fe2fde4e768fb8205b3.zip
Fix build script
Diffstat (limited to '')
-rw-r--r--extras/ngdoc.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/extras/ngdoc.vim b/extras/ngdoc.vim
index 90eceadf..b4f2e006 100644
--- a/extras/ngdoc.vim
+++ b/extras/ngdoc.vim
@@ -5,3 +5,10 @@ endif
syntax match jsDocTags contained /@\(link\|method[oO]f\|ngdoc\|ng[iI]nject\|restrict\)/ nextgroup=jsDocParam skipwhite
syntax match jsDocType contained "\%(#\|\$\|\w\|\"\|-\|\.\|:\|\/\)\+" nextgroup=jsDocParam skipwhite
syntax match jsDocParam contained "\%(#\|\$\|\w\|\"\|-\|\.\|:\|{\|}\|\/\|\[\|]\|=\)\+"
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'javascript') != -1
+ finish
+endif
+
+syntax match jsDocTags contained /@\(link\|method[oO]f\|ngdoc\|ng[iI]nject\|restrict\)/ nextgroup=jsDocParam skipwhite
+syntax match jsDocType contained "\%(#\|\$\|\w\|\"\|-\|\.\|:\|\/\)\+" nextgroup=jsDocParam skipwhite
+syntax match jsDocParam contained "\%(#\|\$\|\w\|\"\|-\|\.\|:\|{\|}\|\/\|\[\|]\|=\)\+"