From 2f147d664ebd8bdfc9ac70c595988c38435106bb Mon Sep 17 00:00:00 2001 From: BlockLune <39331194+BlockLune@users.noreply.github.com> Date: Thu, 21 Aug 2025 20:08:57 +0800 Subject: [PATCH] feat(wxml): use `#offset!` to make queries against the url more precise --- runtime/queries/wxml/highlights.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/queries/wxml/highlights.scm b/runtime/queries/wxml/highlights.scm index e4c726fb5..9abedf46c 100644 --- a/runtime/queries/wxml/highlights.scm +++ b/runtime/queries/wxml/highlights.scm @@ -46,7 +46,7 @@ (attribute_name) @_attr (quoted_attribute_value) @string.special.url) (#any-of? @_attr "href" "src") - (#set! @string.special.url url @string.special.url)) + (#offset! @string.special.url 0 1 0 -1)) ; Entity references (entity) @string.escape