merge slint, html and json injection

This commit is contained in:
ginnyTheCat 2025-03-08 18:41:14 +01:00
parent 05007ab7e4
commit 094ef98131
No known key found for this signature in database
GPG key ID: 503E9FE62EB3A790

View file

@ -9,18 +9,6 @@
(#set! injection.language "rust")
(#set! injection.include-children))
(macro_invocation
macro: [
(scoped_identifier
name: (_) @_macro_name)
(identifier) @_macro_name
]
(token_tree) @injection.content
(#eq? @_macro_name "slint")
(#offset! @injection.content 0 1 0 -1)
(#set! injection.language "slint")
(#set! injection.include-children))
(macro_invocation
macro: [
(scoped_identifier
@ -28,7 +16,7 @@
(identifier) @injection.language
]
(token_tree) @injection.content
(#any-of? @injection.language "html" "json")
(#any-of? @injection.language "slint" "html" "json")
(#offset! @injection.content 0 1 0 -1)
(#set! injection.include-children))