summaryrefslogtreecommitdiffstats
path: root/extras/ngdoc.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2016-09-11 13:38:46 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2016-09-11 13:38:46 +0200
commit9b239101032ad3c08b2ec11d31e1845f8aa4ecac (patch)
treea8da136a425e2c148816a25af184a0b36d081135 /extras/ngdoc.vim
parent98e021e969637da8e88e66a0055f3a40ef4fcdfc (diff)
downloadvim-polyglot-9b239101032ad3c08b2ec11d31e1845f8aa4ecac.tar.gz
vim-polyglot-9b239101032ad3c08b2ec11d31e1845f8aa4ecac.zip
Add raml syntax highlighting, closes #155
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 379619e5..229690cf 100644
--- a/extras/ngdoc.vim
+++ b/extras/ngdoc.vim
@@ -54,3 +54,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