Skip to content

Commit feb3b3b

Browse files
committed
Add test for making sure skipped lines don't cause unexpected indentation.
1 parent 7aa7587 commit feb3b3b

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

test/elixir-mode-indentation-tests.el

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,3 +399,37 @@ end")
399399
"
400400
[1.2,
401401
3.4]")
402+
403+
(elixir-def-indentation-test indent-after-operator ()
404+
"
405+
defmodule Banana do
406+
def start do
407+
a = \"\" <> \"?\"
408+
409+
case bar do
410+
z -> 1
411+
end
412+
413+
case foo do
414+
?x -> x
415+
end
416+
417+
end
418+
end
419+
"
420+
"
421+
defmodule Banana do
422+
def start do
423+
a = \"\" <> \"?\"
424+
425+
case bar do
426+
z -> 1
427+
end
428+
429+
case foo do
430+
?x -> x
431+
end
432+
433+
end
434+
end
435+
")

0 commit comments

Comments
 (0)