summaryrefslogtreecommitdiffstats
path: root/extras/ngdoc.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2016-09-11 13:25:03 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2016-09-11 13:25:03 +0200
commitb8d993932931549cc2bf8158abc9bad026d14c11 (patch)
tree397b353c1113a7e0e48e7dba478137daf06ddbf5 /extras/ngdoc.vim
parent0244e228faf6ee71750cbca3bdcd18411a927d22 (diff)
downloadvim-polyglot-b8d993932931549cc2bf8158abc9bad026d14c11.tar.gz
vim-polyglot-b8d993932931549cc2bf8158abc9bad026d14c11.zip
Add python compiler, closes #147
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 88a6e94e..379619e5 100644
--- a/extras/ngdoc.vim
+++ b/extras/ngdoc.vim
@@ -47,3 +47,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