aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Lacerda <igorlfs@ufmg.br>2026-01-07 12:39:29 -0300
committerGitHub <noreply@github.com>2026-01-07 16:39:29 +0100
commitde878155ca66c49b027b1380e4e60a6c665b2630 (patch)
tree13dbf09ac485aad4d1dcb1f9eaba8624eadcf201
parentdocs(readme): fix lazy snippet (diff)
downloadnvim-treesitter-de878155ca66c49b027b1380e4e60a6c665b2630.tar
nvim-treesitter-de878155ca66c49b027b1380e4e60a6c665b2630.tar.gz
nvim-treesitter-de878155ca66c49b027b1380e4e60a6c665b2630.tar.bz2
nvim-treesitter-de878155ca66c49b027b1380e4e60a6c665b2630.tar.lz
nvim-treesitter-de878155ca66c49b027b1380e4e60a6c665b2630.tar.xz
nvim-treesitter-de878155ca66c49b027b1380e4e60a6c665b2630.tar.zst
nvim-treesitter-de878155ca66c49b027b1380e4e60a6c665b2630.zip
fix(html_tags): disable spell for tags (#8410)
When tags are embedded into markdown, they'd get spell checked, in spite of that not really making sense. The real culprit of this issue is markdown's spell being too "loose".
-rw-r--r--runtime/queries/html_tags/highlights.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/queries/html_tags/highlights.scm b/runtime/queries/html_tags/highlights.scm
index 9eaf813be..94a338aa7 100644
--- a/runtime/queries/html_tags/highlights.scm
+++ b/runtime/queries/html_tags/highlights.scm
@@ -1,9 +1,11 @@
-(tag_name) @tag
+(tag_name) @tag @nospell
; (erroneous_end_tag_name) @error ; we do not lint syntax errors
(comment) @comment @spell
-(attribute_name) @tag.attribute
+(attribute_name) @tag.attribute @nospell
+
+(attribute_value) @nospell
((attribute
(quoted_attribute_value) @string)