summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2021-10-13 08:18:29 -0500
committerStephan Seitz <stephan.seitz@fau.de>2021-10-15 22:43:24 +0200
commit58dd95f4a4db38a011c8f28564786c9d98b010c8 (patch)
tree7907be2b1c013cb4554e1ad8c9325dbfc2b3de2e
parent638891d401bb0269af404cce2f8367ac13053006 (diff)
HTML: highlight text nodes as text
-rw-r--r--queries/html_tags/highlights.scm2
1 files changed, 1 insertions, 1 deletions
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)$"))