Skip to content

Commit 1e7bb06

Browse files
committed
Adding NGDoc support
Fixes #288
1 parent 0f20cf6 commit 1e7bb06

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

extras/ngdocs.vim

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
syntax match jsDocTags contained /@\(link\|method[oO]f\|ngdoc\|ng[iI]nject\|restrict\)/ nextgroup=jsDocParam skipwhite
2+
syntax match jsDocType contained "\%(#\|\$\|\w\|\"\|-\|\.\|:\|\/\)\+" nextgroup=jsDocParam skipwhite
3+
syntax match jsDocParam contained "\%(#\|\$\|\w\|\"\|-\|\.\|:\|{\|}\|\/\|\[\|]\|=\)\+"

syntax/javascript.vim

+4
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ if exists("javascript_plugin_flow")
200200
syntax include extras/flow.vim
201201
endif
202202

203+
if exists("javascript_plugin_ngdocs")
204+
syntax include extras/ngdocs.vim
205+
endif
206+
203207
syntax cluster jsExpression contains=jsBracket,jsParen,jsObject,jsBlock,jsTernaryIf,jsTaggedTemplate,jsTemplateString,jsString,jsRegexpString,jsNumber,jsFloat,jsOperator,jsBooleanTrue,jsBooleanFalse,jsNull,jsFunction,jsArrowFunction,jsGlobalObjects,jsExceptions,jsFutureKeys,jsDomErrNo,jsDomNodeConsts,jsHtmlEvents,jsFuncCall,jsUndefined,jsNan,jsPrototype,jsBuiltins,jsNoise,jsClassDefinition,jsArrowFunction,jsArrowFuncArgs,jsParensError,jsComment,jsArguments,jsThis,jsSuper
204208
syntax cluster jsAll contains=@jsExpression,jsExportContainer,jsImportContainer,jsStorageClass,jsConditional,jsRepeat,jsReturn,jsStatement,jsException,jsTry,jsAsyncKeyword
205209

0 commit comments

Comments
 (0)