File tree 2 files changed +14
-4
lines changed
2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 530
530
(smie-rule-parent ))
531
531
((smie-rule-parent-p " [" )
532
532
(smie-rule-parent ))
533
- ))
533
+ ((smie-rule-parent-p " ->" )
534
+ (if (save-excursion
535
+ (move-end-of-line 1 )
536
+ (looking-back elixir-smie--block-operator-regexp (- (point ) 3 ) t ))
537
+ (smie-rule-parent -2 )
538
+ elixir-smie-indent-basic))
539
+ ((smie-rule-parent-p " ;" )
540
+ (if (save-excursion
541
+ (move-end-of-line 1 )
542
+ (looking-back elixir-smie--block-operator-regexp (- (point ) 3 ) t ))
543
+ (smie-rule-parent -2 )
544
+ elixir-smie-indent-basic))
545
+ (t (smie-rule-parent ))))
534
546
(`(:after . " {" )
535
547
(cond
536
548
((smie-rule-hanging-p )
Original file line number Diff line number Diff line change @@ -1539,9 +1539,7 @@ fn x ->
1539
1539
end" )
1540
1540
1541
1541
(elixir-def-indentation-test case-with-multiline-maps
1542
- ; the last key does not align properly in multiline maps
1543
- ; https://github.com/elixir-lang/emacs-elixir/issues/297
1544
- (:expected-result :failed :tags '(indentation))
1542
+ (:tags '(indentation))
1545
1543
" case statement do
1546
1544
%{\" foo\" => \" foo\" ,
1547
1545
\" baz\" => \" baz\" } ->
You can’t perform that action at this time.
0 commit comments