summaryrefslogtreecommitdiffstats
path: root/extras/ngdoc.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2016-07-26 14:04:56 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2016-07-26 14:04:56 +0200
commitb9ce3df4cd3a93a3ff309301771afbbe92984492 (patch)
tree3dd2228b73ea70ff6e121afed90aeae1bbae2557 /extras/ngdoc.vim
parentf028cfae59d793753829ad54a1a4842440e36d64 (diff)
downloadvim-polyglot-b9ce3df4cd3a93a3ff309301771afbbe92984492.tar.gz
vim-polyglot-b9ce3df4cd3a93a3ff309301771afbbe92984492.zip
Add extras directory of vim-javascript, fixes #144
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
new file mode 100644
index 00000000..be314a80
--- /dev/null
+++ b/extras/ngdoc.vim
@@ -0,0 +1,7 @@
+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