Skip to content

Commit 8ecccd6

Browse files
committed
Merge pull request pangloss#225 from ryanoasis/jsdoc-optional-param-highlight
highlight jsdoc optional param and optional param with default value (corrected)
2 parents 7f6a736 + 8f0bc59 commit 8ecccd6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

syntax/javascript.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ if !exists("javascript_ignore_javaScriptdoc")
7070
syntax match jsDocType contained "\%(#\|\"\|\w\|\.\|:\|\/\)\+" nextgroup=jsDocParam skipwhite
7171
syntax region jsDocTypeNoParam start="{" end="}" oneline contained
7272
syntax match jsDocTypeNoParam contained "\%(#\|\"\|\w\|\.\|:\|\/\)\+"
73-
syntax match jsDocParam contained "\%(#\|\"\|{\|}\|\w\|\.\|:\|\/\)\+"
73+
syntax match jsDocParam contained "\%(#\|\"\|{\|}\|\w\|\.\|:\|\/\|\[\|]\|=\)\+"
7474
syntax region jsDocSeeTag contained matchgroup=jsDocSeeTag start="{" end="}" contains=jsDocTags
7575

7676
syntax case match

0 commit comments

Comments
 (0)