From 58dd95f4a4db38a011c8f28564786c9d98b010c8 Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Wed, 13 Oct 2021 08:18:29 -0500 Subject: HTML: highlight text nodes as text --- queries/html_tags/highlights.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queries/html_tags/highlights.scm b/queries/html_tags/highlights.scm index 09e7b3dd..184b340f 100644 --- a/queries/html_tags/highlights.scm +++ b/queries/html_tags/highlights.scm @@ -4,7 +4,7 @@ (attribute_name) @tag.attribute (attribute_value) @string (quoted_attribute_value) @string -(text) @none +(text) @text ((element (start_tag (tag_name) @_tag) (text) @text.title) (#match? @_tag "^(h[0-9]|title)$")) -- cgit v1.2.3