feat: added more indent queries

This commit is contained in:
elianiva 2021-01-05 19:26:08 +07:00 committed by Thomas Vigouroux
parent 72656dcf3c
commit 9184cf3953
15 changed files with 188 additions and 0 deletions

26
queries/rust/indents.scm Normal file
View file

@ -0,0 +1,26 @@
[
(mod_item)
(struct_item)
(enum_item)
(impl_item)
(for_expression)
(struct_expression)
(match_expression)
(match_arm)
(if_let_expression)
(call_expression)
(assignment_expression)
(arguments)
(block)
(where_clause)
] @indent
[
"where"
"("
")"
"["
"]"
"{"
"}"
] @branch