aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2024-11-21 17:00:11 -0800
committerGitHub <noreply@github.com>2024-11-21 17:00:11 -0800
commit1249b4cfce166f26fe52e46ed36bda907d6bb577 (patch)
treea164d08d3f0ade58f8274997ee08d93a92a58e0d
parentfeat(python): highlight modules (diff)
downloadnvim-treesitter-1249b4cfce166f26fe52e46ed36bda907d6bb577.tar
nvim-treesitter-1249b4cfce166f26fe52e46ed36bda907d6bb577.tar.gz
nvim-treesitter-1249b4cfce166f26fe52e46ed36bda907d6bb577.tar.bz2
nvim-treesitter-1249b4cfce166f26fe52e46ed36bda907d6bb577.tar.lz
nvim-treesitter-1249b4cfce166f26fe52e46ed36bda907d6bb577.tar.xz
nvim-treesitter-1249b4cfce166f26fe52e46ed36bda907d6bb577.tar.zst
nvim-treesitter-1249b4cfce166f26fe52e46ed36bda907d6bb577.zip
fix(jsdoc): only highlight slashes in paths (#7387)
Otherwise the final slash in a doc comment `*/` will also be highlighted.
-rw-r--r--queries/jsdoc/highlights.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/queries/jsdoc/highlights.scm b/queries/jsdoc/highlights.scm
index 08953a062..6df73318d 100644
--- a/queries/jsdoc/highlights.scm
+++ b/queries/jsdoc/highlights.scm
@@ -11,12 +11,14 @@
[
":"
- "/"
"."
"#"
"~"
] @punctuation.delimiter
+(path_expression
+ "/" @punctuation.delimiter)
+
(identifier) @variable @nospell
(tag