Skip to content

Commit a426d8e

Browse files
committed
Add another multiline match test.
This time separate the match clauses by a blank line. This test fails.
1 parent 60d83a7 commit a426d8e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

test/elixir-mode-indentation-tests.el

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,33 @@ def foo do
540540
end"
541541
)
542542

543+
(elixir-def-indentation-test indent-multiline-match/2 ()
544+
"
545+
def foo do
546+
case is_string(x) do
547+
true ->
548+
x2 = \" one\"
549+
x <> x2
550+
551+
false ->
552+
x2 = \" two\"
553+
x <> x2
554+
end
555+
end"
556+
"
557+
def foo do
558+
case is_string(x) do
559+
true ->
560+
x2 = \" one\"
561+
x <> x2
562+
563+
false ->
564+
x2 = \" two\"
565+
x <> x2
566+
end
567+
end"
568+
)
569+
543570
(elixir-def-indentation-test indent-after-require-Record
544571
()
545572
;; Mind the significant whitespace after `Record' in each case. There should

0 commit comments

Comments
 (0)