diff options
| author | Riley Bruins <ribru17@hotmail.com> | 2024-07-04 19:09:26 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-05 11:09:26 +0900 |
| commit | f7c05e3e0510df7c742d455c802e27b6ee7ab384 (patch) | |
| tree | aa7f88320735c8a533e2ce1ad72eea1b353c6aff | |
| parent | feat(jsdoc): add missing highlights (diff) | |
| download | nvim-treesitter-f7c05e3e0510df7c742d455c802e27b6ee7ab384.tar nvim-treesitter-f7c05e3e0510df7c742d455c802e27b6ee7ab384.tar.gz nvim-treesitter-f7c05e3e0510df7c742d455c802e27b6ee7ab384.tar.bz2 nvim-treesitter-f7c05e3e0510df7c742d455c802e27b6ee7ab384.tar.lz nvim-treesitter-f7c05e3e0510df7c742d455c802e27b6ee7ab384.tar.xz nvim-treesitter-f7c05e3e0510df7c742d455c802e27b6ee7ab384.tar.zst nvim-treesitter-f7c05e3e0510df7c742d455c802e27b6ee7ab384.zip | |
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.
| -rw-r--r-- | queries/html_tags/highlights.scm | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
