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 @@ -73,8 +73,10 @@ if !exists("javascript_ignore_javaScriptdoc")
73
73
" other tags (no extra syntax)
74
74
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\)\> "
75
75
76
- syntax region jsDocType start =" {" end =" }" oneline contained nextgroup =jsDocParam skipwhite
76
+ syntax region jsDocType matchgroup = jsDocTypeBrackets start =" {" end =" }" oneline contained nextgroup =jsDocParam skipwhite contains = jsDocTypeRecord
77
77
syntax match jsDocType contained " \% (#\|\"\|\w\|\.\| :\|\/\)\+ " nextgroup =jsDocParam skipwhite
78
+ syntax region jsDocTypeRecord start =/ {/ end =/ }/ contained extend contains =jsDocTypeRecord
79
+ syntax region jsDocTypeRecord start =/ \[ / end =/ \] / contained extend contains =jsDocTypeRecord
78
80
syntax region jsDocTypeNoParam start =" {" end =" }" oneline contained
79
81
syntax match jsDocTypeNoParam contained " \% (#\|\"\|\w\|\.\| :\|\/\)\+ "
80
82
syntax match jsDocParam contained " \% (#\|\$\| -\| '\|\"\| {.\{ -}}\|\w\|\.\| :\|\/\|\[ .{-}]\| =\)\+ "
@@ -254,6 +256,8 @@ if version >= 508 || !exists("did_javascript_syn_inits")
254
256
HiLink jsDocTags Special
255
257
HiLink jsDocSeeTag Function
256
258
HiLink jsDocType Type
259
+ HiLink jsDocTypeBrackets jsDocType
260
+ HiLink jsDocTypeRecord jsDocType
257
261
HiLink jsDocTypeNoParam Type
258
262
HiLink jsDocParam Label
259
263
HiLink jsStringS String
You can’t perform that action at this time.
0 commit comments