feat(wxml): use #offset! to make queries against the url more precise

This commit is contained in:
BlockLune 2025-08-21 20:08:57 +08:00
parent 1bb822e73a
commit 2f147d664e

View file

@ -46,7 +46,7 @@
(attribute_name) @_attr (attribute_name) @_attr
(quoted_attribute_value) @string.special.url) (quoted_attribute_value) @string.special.url)
(#any-of? @_attr "href" "src") (#any-of? @_attr "href" "src")
(#set! @string.special.url url @string.special.url)) (#offset! @string.special.url 0 1 0 -1))
; Entity references ; Entity references
(entity) @string.escape (entity) @string.escape