Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 23fac44

Browse files
WliuWliu
authored andcommitted
📝
1 parent d171982 commit 23fac44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

grammars/jsdoc.cson

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,12 @@
275275
(=) # [foo=bar] Default parameter value
276276
\\s*
277277
(
278+
# The inner regexes are to stop the match early at */ and to not stop at escaped quotes
278279
(?:
279280
"(?:(?:\\*(?!/))|(?:\\\\(?!"))|[^*\\\\])*?" | # [foo="bar"] Double-quoted
280281
'(?:(?:\\*(?!/))|(?:\\\\(?!'))|[^*\\\\])*?' | # [foo='bar'] Single-quoted
281282
\\[ (?:(?:\\*(?!/))|[^*])*? \\] | # [foo=[1,2]] Array literal
282-
(?:(?:\\*(?!/))|[^*])*? # Everything else, but stop the match early at */
283+
(?:(?:\\*(?!/))|[^*])*? # Everything else
283284
)*
284285
)
285286
)?

0 commit comments

Comments
 (0)