Skip to content

Commit 7b32644

Browse files
committed
Merge pull request #322 from gausby/cond-inside-with
added a failing indentation test for cond within with
2 parents 689510d + 9cc79de commit 7b32644

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

test/elixir-mode-indentation-test.el

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,32 @@ def foo() do
630630
end
631631
")
632632

633+
(elixir-def-indentation-test cond-within-with
634+
(:expected-result :failed :tags '(indentation))
635+
;; https://github.com/elixir-lang/emacs-elixir/issues/319
636+
"with(
637+
foo <-
638+
cond do
639+
bar ->
640+
bar
641+
642+
baz ->
643+
baz
644+
end,
645+
do: :ok
646+
)"
647+
"with(
648+
foo <-
649+
cond do
650+
bar ->
651+
bar
652+
653+
baz ->
654+
baz
655+
end,
656+
do: :ok
657+
)")
658+
633659
(elixir-def-indentation-test indent-heredoc
634660
(:tags '(indentation))
635661
"

0 commit comments

Comments
 (0)