summaryrefslogtreecommitdiffstats
path: root/extras/ngdoc.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2016-07-30 13:18:40 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2016-07-30 13:18:40 +0200
commit81deccef65e6dd8fe145cd5fb8fd349db3b28192 (patch)
tree866fd3a1c463e02afc6cd5240691c35d09f836b3 /extras/ngdoc.vim
parent3019afa721b893ebfe130eb4f955bc4c0c20ec23 (diff)
downloadvim-polyglot-2.12.1.tar.gz
vim-polyglot-2.12.1.zip
Updatev2.12.1
Diffstat (limited to 'extras/ngdoc.vim')
-rw-r--r--extras/ngdoc.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/extras/ngdoc.vim b/extras/ngdoc.vim
index 0fd55874..71cfb8ef 100644
--- a/extras/ngdoc.vim
+++ b/extras/ngdoc.vim
@@ -33,3 +33,10 @@ syntax match jsDocType contained "\%(#\|\$\|\w\|\"\|-\|\.\|:\|\/\)\+" n
syntax match jsDocParam contained "\%(#\|\$\|\w\|\"\|-\|\.\|:\|{\|}\|\/\|\[\|]\|=\)\+"
endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1
+
+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\|\"\|-\|\.\|:\|{\|}\|\/\|\[\|]\|=\)\+"
+
+endif