summaryrefslogblamecommitdiffstats
path: root/extras/ngdoc.vim
blob: 6e38f90522bae311e1176630b90ff3f55c4619f8 (plain) (tree)
1
2
3
4
5
6
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