mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 16:30:02 -04:00
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:
parent
8a74ac9aea
commit
1249b4cfce
1 changed files with 3 additions and 1 deletions
|
|
@ -11,12 +11,14 @@
|
||||||
|
|
||||||
[
|
[
|
||||||
":"
|
":"
|
||||||
"/"
|
|
||||||
"."
|
"."
|
||||||
"#"
|
"#"
|
||||||
"~"
|
"~"
|
||||||
] @punctuation.delimiter
|
] @punctuation.delimiter
|
||||||
|
|
||||||
|
(path_expression
|
||||||
|
"/" @punctuation.delimiter)
|
||||||
|
|
||||||
(identifier) @variable @nospell
|
(identifier) @variable @nospell
|
||||||
|
|
||||||
(tag
|
(tag
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue