Skip to content

Commit c7d2709

Browse files
committed
Merge pull request #64 from edmz/patch-1
wrong indentation if space between if and statement
2 parents 54bebd7 + 0bad2a3 commit c7d2709

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/elixir-mode-indentation-tests.el

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,22 @@ defmodule FooBar do
125125
end
126126
end")
127127

128+
(elixir-def-indentation-test indents-do-blocks-with-space-after-inline (:expected-result :failed)
129+
"defmodule Foo do
130+
def foobar do
131+
if true, do: IO.puts \"yay\"
132+
133+
20
134+
end
135+
end"
136+
"defmodule Foo do
137+
def foobar do
138+
if true, do: IO.puts \"yay\"
139+
140+
20
141+
end
142+
end")
143+
128144
(elixir-def-indentation-test indents-after-empty-line
129145
()
130146
"

0 commit comments

Comments
 (0)