diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2016-09-11 13:38:46 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2016-09-11 13:38:46 +0200 |
commit | 9b239101032ad3c08b2ec11d31e1845f8aa4ecac (patch) | |
tree | a8da136a425e2c148816a25af184a0b36d081135 /extras/ngdoc.vim | |
parent | 98e021e969637da8e88e66a0055f3a40ef4fcdfc (diff) | |
download | vim-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.vim | 7 |
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 |