File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,10 @@ if !exists("javascript_ignore_javaScriptdoc")
67
67
" other tags (no extra syntax)
68
68
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\)\> "
69
69
70
- syntax region jsDocType start =" {" end =" }" oneline contained nextgroup =jsDocParam skipwhite
70
+ syntax region jsDocType matchgroup = jsDocTypeBrackets start =" {" end =" }" oneline contained nextgroup =jsDocParam skipwhite contains = jsDocTypeRecord
71
71
syntax match jsDocType contained " \% (#\|\"\|\w\|\.\| :\|\/\)\+ " nextgroup =jsDocParam skipwhite
72
+ syntax region jsDocTypeRecord start =/ {/ end =/ }/ contained extend contains =jsDocTypeRecord
73
+ syntax region jsDocTypeRecord start =/ \[ / end =/ \] / contained extend contains =jsDocTypeRecord
72
74
syntax region jsDocTypeNoParam start =" {" end =" }" oneline contained
73
75
syntax match jsDocTypeNoParam contained " \% (#\|\"\|\w\|\.\| :\|\/\)\+ "
74
76
syntax match jsDocParam contained " \% (#\|\$\| -\| '\|\"\| {.\{ -}}\|\w\|\.\| :\|\/\|\[ .{-}]\| =\)\+ "
@@ -248,6 +250,8 @@ if version >= 508 || !exists("did_javascript_syn_inits")
248
250
HiLink jsDocTags Special
249
251
HiLink jsDocSeeTag Function
250
252
HiLink jsDocType Type
253
+ HiLink jsDocTypeBrackets jsDocType
254
+ HiLink jsDocTypeRecord jsDocType
251
255
HiLink jsDocTypeNoParam Type
252
256
HiLink jsDocParam Label
253
257
HiLink jsStringS String
You can’t perform that action at this time.
0 commit comments