File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 391
391
(`(:before . " fn" )
392
392
(smie-rule-parent ))
393
393
(`(:before . " for" )
394
- (smie-rule-parent ))
394
+ (cond
395
+ ((elixir-smie-last-line-end-with-block-operator-p)
396
+ (smie-rule-parent elixir-smie-indent-basic))
397
+ (t (smie-rule-parent ))))
395
398
(`(:before . " do:" )
396
399
(cond
397
400
((smie-rule-parent-p " def" " if" " defp" " defmacro" " defmacrop" )
Original file line number Diff line number Diff line change @@ -1466,9 +1466,7 @@ end"
1466
1466
end" )
1467
1467
1468
1468
(elixir-def-indentation-test case-with-for-comprehension
1469
- ; the for-comprehension should get indented one level
1470
- ; https://github.com/elixir-lang/emacs-elixir/issues/304
1471
- (:expected-result :failed :tags '(indentation))
1469
+ (:tags '(indentation))
1472
1470
" case expression do
1473
1471
true ->
1474
1472
for _ <- [] do
You can’t perform that action at this time.
0 commit comments