File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 530530 (smie-rule-parent ))
531531 ((smie-rule-parent-p " [" )
532532 (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 ))))
534546 (`(:after . " {" )
535547 (cond
536548 ((smie-rule-hanging-p )
Original file line number Diff line number Diff line change @@ -1539,9 +1539,7 @@ fn x ->
15391539end" )
15401540
15411541(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))
15451543" case statement do
15461544 %{\" foo\" => \" foo\" ,
15471545 \" baz\" => \" baz\" } ->
You can’t perform that action at this time.
0 commit comments