File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 515
515
; ; ....
516
516
((elixir-smie-last-line-end-with-block-operator-p)
517
517
(smie-rule-parent elixir-smie-indent-basic))
518
- (t
519
- (smie-rule-parent ))))
518
+ ; ; Indent if inside else
519
+ ; ;
520
+ ; ; Example:
521
+ ; ;
522
+ ; ; else
523
+ ; ; if condition, do: :bar <-
524
+ ; ; end
525
+ ((smie-rule-parent-p " else" )
526
+ (smie-rule-parent elixir-smie-indent-basic))
527
+ (t (smie-rule-parent ))))
520
528
(`(:before . " ->" )
521
529
(cond
522
530
; ; Example
Original file line number Diff line number Diff line change @@ -350,8 +350,7 @@ end")
350
350
351
351
352
352
(elixir-def-indentation-test indent-if-else/2
353
- ; ; https://github.com/elixir-lang/emacs-elixir/issues/288
354
- (:expected-result :failed :tags '(indentation))
353
+ (:tags '(indentation))
355
354
"
356
355
if condition do
357
356
:foo
You can’t perform that action at this time.
0 commit comments