svelte: also capture src as text.uri

This commit is contained in:
elianiva 2021-03-01 01:33:48 +07:00 committed by Santos Gallegos
parent 9d57216c0d
commit 1bbcd2fbc2

View file

@ -22,7 +22,7 @@
((attribute
(attribute_name) @_attr
(quoted_attribute_value (attribute_value) @text.uri))
(#eq? @_attr "href"))
(#match? @_attr "^(href|src)$"))
(tag_name) @tag
(attribute_name) @property