HTML: highlight text nodes as text

This commit is contained in:
Santos Gallegos 2021-10-13 08:18:29 -05:00 committed by Stephan Seitz
parent 638891d401
commit 58dd95f4a4

View file

@ -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)$"))