@@ -192,31 +192,9 @@ syntax region jsComment start="/\*" end="\*/" contains=jsCommentTodo,js
192
192
syntax region jsEnvComment start =" \% ^#!" end =" $" display
193
193
syntax region jsCvsTag contained start =" \$\c id:" end =" \$ " oneline
194
194
195
- " " JSDoc / JSDoc Toolkit
196
195
if ! exists (" javascript_ignore_javaScriptdoc" )
197
- " " syntax coloring for javadoc comments (HTML)
198
- syntax region jsComment matchgroup =jsComment start =" /\*\s *" end =" \* /" contains =jsDocTags,jsCommentTodo,jsCvsTag,@jsHtml,@Spell fold
199
-
200
- " tags containing a param
201
- syntax match jsDocTags contained " @\( alias\| api\| augments\| borrows\| class\| constructs\| default\| defaultvalue\| emits\| exception\| exports\| extends\| fires\| kind\| link\| listens\| member\| member[oO]f\| mixes\| module\| name\| namespace\| requires\| template\| throws\| var\| variation\| version\)\> " skipwhite nextgroup =jsDocParam
202
- " tags containing type and param
203
- syntax match jsDocTags contained " @\( arg\| argument\| cfg\| param\| property\| prop\)\> " skipwhite nextgroup =jsDocType
204
- " tags containing type but no param
205
- syntax match jsDocTags contained " @\( callback\| define\| enum\| external\| implements\| this\| type\| typedef\| return\| returns\)\> " skipwhite nextgroup =jsDocTypeNoParam
206
- " tags containing references
207
- syntax match jsDocTags contained " @\( lends\| see\| tutorial\)\> " skipwhite nextgroup =jsDocSeeTag
208
- " other tags (no extra syntax)
209
- syntax match jsDocTags contained " @\( abstract\| access\| accessor\| author\| classdesc\| constant\| const\| constructor\| copyright\| deprecated\| desc\| description\| dict\| event\| example\| file\| file[oO]verview\| final\| function\| global\| ignore\| inheritDoc\| inner\| instance\| interface\| license\| localdoc\| method\| mixin\| nosideeffects\| override\| overview\| preserve\| private\| protected\| public\| readonly\| since\| static\| struct\| todo\| summary\| undocumented\| virtual\)\> "
210
-
211
- syntax region jsDocType contained matchgroup =jsDocTypeBrackets start =" {" end =" }" contains =jsDocTypeRecord oneline skipwhite nextgroup =jsDocParam
212
- syntax match jsDocType contained " \% (#\|\"\|\w\|\.\| :\|\/\)\+ " skipwhite nextgroup =jsDocParam
213
- syntax region jsDocTypeRecord contained start =/ {/ end =/ }/ contains =jsDocTypeRecord extend
214
- syntax region jsDocTypeRecord contained start =/ \[ / end =/ \] / contains =jsDocTypeRecord extend
215
- syntax region jsDocTypeNoParam contained start =" {" end =" }" oneline
216
- syntax match jsDocTypeNoParam contained " \% (#\|\"\|\w\|\.\| :\|\/\)\+ "
217
- syntax match jsDocParam contained " \% (#\|\$\| -\| '\|\"\| {.\{ -}}\|\w\|\.\| :\|\/\|\[ .{-}]\| =\)\+ "
218
- syntax region jsDocSeeTag contained matchgroup =jsDocSeeTag start =" {" end =" }" contains =jsDocTags
219
- endif " " JSDoc end
196
+ syntax include extras /jsdocs.vim
197
+ endif
220
198
221
199
if exists (" javascript_plugin_flow" )
222
200
syntax include extras /flow.vim
@@ -239,13 +217,6 @@ if version >= 508 || !exists("did_javascript_syn_inits")
239
217
HiLink jsEnvComment PreProc
240
218
HiLink jsCommentTodo Todo
241
219
HiLink jsCvsTag Function
242
- HiLink jsDocTags Special
243
- HiLink jsDocSeeTag Function
244
- HiLink jsDocType Type
245
- HiLink jsDocTypeBrackets jsDocType
246
- HiLink jsDocTypeRecord jsDocType
247
- HiLink jsDocTypeNoParam Type
248
- HiLink jsDocParam Label
249
220
HiLink jsString String
250
221
HiLink jsObjectKeyString String
251
222
HiLink jsTemplateString String
0 commit comments