From b9ce3df4cd3a93a3ff309301771afbbe92984492 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 26 Jul 2016 14:04:56 +0200 Subject: Add extras directory of vim-javascript, fixes #144 --- extras/ngdoc.vim | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 extras/ngdoc.vim (limited to 'extras/ngdoc.vim') 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 -- cgit v1.2.3