From f7c05e3e0510df7c742d455c802e27b6ee7ab384 Mon Sep 17 00:00:00 2001 From: Riley Bruins Date: Thu, 4 Jul 2024 19:09:26 -0700 Subject: [PATCH] fix(html): correct the link label highlight (#6866) Unlike the `href` attribute, the inner text of the `a` tag is the label of the link, not the actual URL. --- 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 4fde36d9e..6c5063c5f 100644 --- a/queries/html_tags/highlights.scm +++ b/queries/html_tags/highlights.scm @@ -86,7 +86,7 @@ ((element (start_tag (tag_name) @_tag) - (text) @string.special.url) + (text) @markup.link.label) (#eq? @_tag "a")) ((attribute