diff options
Diffstat (limited to 'runtime/queries/rust/indents.scm')
-rw-r--r-- | runtime/queries/rust/indents.scm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/queries/rust/indents.scm b/runtime/queries/rust/indents.scm index 600c77a3..5c2c70d0 100644 --- a/runtime/queries/rust/indents.scm +++ b/runtime/queries/rust/indents.scm @@ -51,13 +51,14 @@ . (_) @expr-start value: (_) @indent + alternative: (_)? @indent (#not-same-line? @indent @expr-start) (#set! "scope" "all") ) -(if_let_expression +(if_expression . (_) @expr-start - value: (_) @indent + condition: (_) @indent (#not-same-line? @indent @expr-start) (#set! "scope" "all") ) |