Skip to content

Commit 4f1b52c

Browse files
committed
Merge pull request #298 from gausby/case-with-multiline-maps
Added a test for alignment of the last key in multiline maps in cases
2 parents 109c130 + fa83b08 commit 4f1b52c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

test/elixir-mode-indentation-test.el

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,6 +1444,27 @@ fn x ->
14441444
end
14451445
end")
14461446

1447+
(elixir-def-indentation-test case-with-multiline-maps
1448+
; the last key does not align properly in multiline maps
1449+
; https://github.com/elixir-lang/emacs-elixir/issues/297
1450+
(:expected-result :failed :tags '(indentation))
1451+
"case statement do
1452+
%{\"foo\" => \"foo\",
1453+
\"baz\" => \"baz\"} ->
1454+
:ok
1455+
1456+
_ ->
1457+
:ok
1458+
end"
1459+
"case statement do
1460+
%{\"foo\" => \"foo\",
1461+
\"baz\" => \"baz\"} ->
1462+
:ok
1463+
1464+
_ ->
1465+
:ok
1466+
end")
1467+
14471468
(elixir-def-indentation-test close-map-curly-brackt
14481469
(:tags '(indentation))
14491470
"

0 commit comments

Comments
 (0)