fix(rust): Add back 1 indent for macro rules (#5834)

This commit is contained in:
Pham Huy Hoang 2023-12-26 21:57:22 +09:00 committed by Phạm Huy Hoàng
parent 6548bb64c1
commit c41d38b70e

View file

@ -24,6 +24,16 @@
(macro_definition)
] @indent.begin
; Typing in "(" inside macro definitions breaks the tree entirely
; Making macro_definition becoming errors
; Offset this by adding back one indent for start of macro rules
(ERROR
.
"macro_rules!"
"(" @indent.begin
(#set! indent.immediate)
(#set! indent.start_at_same_line))
(trait_item
body: (_) @indent.begin)