fix(jsdoc): only highlight slashes in paths (#7387)

Otherwise the final slash in a doc comment `*/` will also be
highlighted.
This commit is contained in:
Riley Bruins 2024-11-21 17:00:11 -08:00 committed by GitHub
parent 8a74ac9aea
commit 1249b4cfce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,12 +11,14 @@
[ [
":" ":"
"/"
"." "."
"#" "#"
"~" "~"
] @punctuation.delimiter ] @punctuation.delimiter
(path_expression
"/" @punctuation.delimiter)
(identifier) @variable @nospell (identifier) @variable @nospell
(tag (tag