aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaehwang Jung <tomtomjhj@gmail.com>2023-09-12 23:46:39 +0900
committerChristian Clason <c.clason@uni-graz.at>2023-09-12 17:34:58 +0200
commit905e782e803e200ec43b0b31fee37164cb2249a0 (patch)
treeab127bdd872ee5f8bfc73ef3aba21c2a3eecc8b4
parentUpdate parsers: gleam, vhs, wing (diff)
downloadnvim-treesitter-905e782e803e200ec43b0b31fee37164cb2249a0.tar
nvim-treesitter-905e782e803e200ec43b0b31fee37164cb2249a0.tar.gz
nvim-treesitter-905e782e803e200ec43b0b31fee37164cb2249a0.tar.bz2
nvim-treesitter-905e782e803e200ec43b0b31fee37164cb2249a0.tar.lz
nvim-treesitter-905e782e803e200ec43b0b31fee37164cb2249a0.tar.xz
nvim-treesitter-905e782e803e200ec43b0b31fee37164cb2249a0.tar.zst
nvim-treesitter-905e782e803e200ec43b0b31fee37164cb2249a0.zip
perf(comment): remove spell capture
Problem: Comment highlight query produces too many @spell captures. Solution: Remove the query. This is fine because comment parser is only used in injection and the parent language has @spell for comment.
-rw-r--r--queries/comment/highlights.scm2
1 files changed, 0 insertions, 2 deletions
diff --git a/queries/comment/highlights.scm b/queries/comment/highlights.scm
index 70aa92de2..87491c7a5 100644
--- a/queries/comment/highlights.scm
+++ b/queries/comment/highlights.scm
@@ -1,5 +1,3 @@
-(_) @spell
-
((tag
(name) @text.todo @nospell
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?