feat(rust): add !xml injection

This commit is contained in:
Bartłomiej Maryńczak 2026-01-24 22:21:27 +01:00 committed by GitHub
parent 67b3ce0529
commit 81aca2f981
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,7 @@
(identifier) @_macro_name (identifier) @_macro_name
] ]
(token_tree) @injection.content (token_tree) @injection.content
(#not-any-of? @_macro_name "slint" "html" "json") (#not-any-of? @_macro_name "slint" "html" "json" "xml")
(#set! injection.language "rust") (#set! injection.language "rust")
(#set! injection.include-children)) (#set! injection.include-children))
@ -16,7 +16,7 @@
(identifier) @injection.language (identifier) @injection.language
] ]
(token_tree) @injection.content (token_tree) @injection.content
(#any-of? @injection.language "slint" "html" "json") (#any-of? @injection.language "slint" "html" "json" "xml")
(#offset! @injection.content 0 1 0 -1) (#offset! @injection.content 0 1 0 -1)
(#set! injection.include-children)) (#set! injection.include-children))