From 905e782e803e200ec43b0b31fee37164cb2249a0 Mon Sep 17 00:00:00 2001 From: Jaehwang Jung Date: Tue, 12 Sep 2023 23:46:39 +0900 Subject: [PATCH] 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. --- queries/comment/highlights.scm | 2 -- 1 file changed, 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)?