aboutsummaryrefslogtreecommitdiffstats
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
parentHighlight and,or,not,in as @keyword.operator (diff)
downloadnvim-treesitter-58dd95f4a4db38a011c8f28564786c9d98b010c8.tar
nvim-treesitter-58dd95f4a4db38a011c8f28564786c9d98b010c8.tar.gz
nvim-treesitter-58dd95f4a4db38a011c8f28564786c9d98b010c8.tar.bz2
nvim-treesitter-58dd95f4a4db38a011c8f28564786c9d98b010c8.tar.lz
nvim-treesitter-58dd95f4a4db38a011c8f28564786c9d98b010c8.tar.xz
nvim-treesitter-58dd95f4a4db38a011c8f28564786c9d98b010c8.tar.zst
nvim-treesitter-58dd95f4a4db38a011c8f28564786c9d98b010c8.zip
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 09e7b3ddf..184b340f0 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)$"))