summaryrefslogtreecommitdiff
path: root/queries/html
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2021-02-25 23:14:42 -0500
committerStephan Seitz <stephan.lauf@yahoo.de>2021-02-26 07:45:59 +0100
commit91a89aa408c19572bd7a41caa8ab8666143bec8c (patch)
treebb13ec27d23e133a80b668e6716e5c3e21fa2602 /queries/html
parentb0e1520f470c659fdc28059e999de6a88fe5f179 (diff)
HTML: capture src attributes as text.uri
Diffstat (limited to 'queries/html')
-rw-r--r--queries/html/highlights.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/queries/html/highlights.scm b/queries/html/highlights.scm
index a30de675..97fd0d66 100644
--- a/queries/html/highlights.scm
+++ b/queries/html/highlights.scm
@@ -30,7 +30,7 @@
((attribute
(attribute_name) @_attr
(quoted_attribute_value (attribute_value) @text.uri))
- (#eq? @_attr "href"))
+ (#match? @_attr "^(href|src)$"))
"=" @operator