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")
6767 " other tags (no extra syntax)
6868 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\)\> "
6969
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
7171 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
7274 syntax region jsDocTypeNoParam start =" {" end =" }" oneline contained
7375 syntax match jsDocTypeNoParam contained " \% (#\|\"\|\w\|\.\| :\|\/\)\+ "
7476 syntax match jsDocParam contained " \% (#\|\$\| -\| '\|\"\| {.\{ -}}\|\w\|\.\| :\|\/\|\[ .{-}]\| =\)\+ "
@@ -248,6 +250,8 @@ if version >= 508 || !exists("did_javascript_syn_inits")
248250 HiLink jsDocTags Special
249251 HiLink jsDocSeeTag Function
250252 HiLink jsDocType Type
253+ HiLink jsDocTypeBrackets jsDocType
254+ HiLink jsDocTypeRecord jsDocType
251255 HiLink jsDocTypeNoParam Type
252256 HiLink jsDocParam Label
253257 HiLink jsStringS String
You can’t perform that action at this time.
0 commit comments