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

View File

@@ -5,7 +5,7 @@
(identifier) @_macro_name
]
(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.include-children))
@@ -16,7 +16,7 @@
(identifier) @injection.language
]
(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)
(#set! injection.include-children))