mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
fix(rust): dedent on macro definition end
This commit is contained in:
parent
3686029591
commit
4d76587eec
1 changed files with 12 additions and 1 deletions
|
|
@ -30,10 +30,21 @@
|
||||||
(ERROR
|
(ERROR
|
||||||
.
|
.
|
||||||
"macro_rules!"
|
"macro_rules!"
|
||||||
"(" @indent.begin
|
[
|
||||||
|
"("
|
||||||
|
"{"
|
||||||
|
"["
|
||||||
|
] @indent.begin
|
||||||
(#set! indent.immediate)
|
(#set! indent.immediate)
|
||||||
(#set! indent.start_at_same_line))
|
(#set! indent.start_at_same_line))
|
||||||
|
|
||||||
|
(macro_definition
|
||||||
|
[
|
||||||
|
")"
|
||||||
|
"}"
|
||||||
|
"]"
|
||||||
|
] @indent.end)
|
||||||
|
|
||||||
(trait_item
|
(trait_item
|
||||||
body: (_) @indent.begin)
|
body: (_) @indent.begin)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue