diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2016-07-30 13:18:40 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2016-07-30 13:19:35 +0200 |
commit | ab61d2ac8eafc9c10097577736602da48ec568ca (patch) | |
tree | c33fcffa647794194376beb91ee35d8d3f8fcc4e /extras/ngdoc.vim | |
parent | f42e1f477ccc8ba4ef756b6d7d16a26686b4b75f (diff) | |
download | vim-polyglot-ab61d2ac8eafc9c10097577736602da48ec568ca.tar.gz vim-polyglot-ab61d2ac8eafc9c10097577736602da48ec568ca.zip |
Update
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 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 |