mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 12:20:02 -04:00
feat(wxml): use #offset! to make queries against the url more precise
This commit is contained in:
parent
1bb822e73a
commit
2f147d664e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue