File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -806,6 +806,28 @@ defmodule RSS do
806806 end
807807end" )
808808
809+ (elixir-def-indentation-test indent-fn-in-multiline-assignment
810+ (:expected-result :failed :tags '(indentation))
811+ "
812+ variable =
813+ fn ->
814+ case :file.open(path, modes) do
815+ {:ok, device} -> device
816+ {:error, reason} ->
817+ raise File.Error, reason: reason
818+ end
819+ end"
820+
821+ "
822+ variable =
823+ fn ->
824+ case :file.open(path, modes) do
825+ {:ok, device} -> device
826+ {:error, reason} ->
827+ raise File.Error, reason: reason
828+ end
829+ end" )
830+
809831; ; We don't want automatic whitespace cleanup here because of the significant
810832; ; whitespace after `Record' above. By setting `whitespace-action' to nil,
811833; ; `whitespace-mode' won't automatically clean up trailing whitespace (in my
You can’t perform that action at this time.
0 commit comments