mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
feat(rust): add !xml injection
This commit is contained in:
parent
67b3ce0529
commit
81aca2f981
1 changed files with 2 additions and 2 deletions
|
|
@ -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))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue