From 5d1c9034e51b24fce7b895a7149ecd079c57e318 Mon Sep 17 00:00:00 2001 From: uncenter Date: Thu, 12 Jun 2025 16:05:13 -0400 Subject: [PATCH] Highlight HTML entities --- languages.toml | 2 +- runtime/queries/html/highlights.scm | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/languages.toml b/languages.toml index 105895034..8703f91f5 100644 --- a/languages.toml +++ b/languages.toml @@ -935,7 +935,7 @@ indent = { tab-width = 2, unit = " " } [[grammar]] name = "html" -source = { git = "https://github.com/tree-sitter/tree-sitter-html", rev = "29f53d8f4f2335e61bf6418ab8958dac3282077a" } +source = { git = "https://github.com/tree-sitter/tree-sitter-html", rev = "cbb91a0ff3621245e890d1c50cc811bffb77a26b" } [[language]] name = "python" diff --git a/runtime/queries/html/highlights.scm b/runtime/queries/html/highlights.scm index 0ade1d4ba..9227bfca8 100644 --- a/runtime/queries/html/highlights.scm +++ b/runtime/queries/html/highlights.scm @@ -2,6 +2,7 @@ (erroneous_end_tag_name) @error (doctype) @constant (attribute_name) @attribute +(entity) @string.special.symbol (comment) @comment ((attribute