mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-17 17:38:02 +00:00
feat(rust): add !xml injection
This commit is contained in:
committed by
GitHub
parent
67b3ce0529
commit
81aca2f981
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user