mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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
|
||||
.
|
||||
"macro_rules!"
|
||||
"(" @indent.begin
|
||||
[
|
||||
"("
|
||||
"{"
|
||||
"["
|
||||
] @indent.begin
|
||||
(#set! indent.immediate)
|
||||
(#set! indent.start_at_same_line))
|
||||
|
||||
(macro_definition
|
||||
[
|
||||
")"
|
||||
"}"
|
||||
"]"
|
||||
] @indent.end)
|
||||
|
||||
(trait_item
|
||||
body: (_) @indent.begin)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue