From d868b4d066447e2fee764ff8a84fbea2f5e5ca7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20Meadows-J=C3=B6nsson?= Date: Sun, 27 Apr 2014 22:24:51 +0200 Subject: [PATCH] Do not wrap single lists in :__block__ --- lib/elixir/src/elixir_parser.yrl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/elixir/src/elixir_parser.yrl b/lib/elixir/src/elixir_parser.yrl index ff05f97c4c..88c1f5a117 100644 --- a/lib/elixir/src/elixir_parser.yrl +++ b/lib/elixir/src/elixir_parser.yrl @@ -696,7 +696,7 @@ unwrap_when(Args) -> Args end. -to_block([One]) when not is_list(One) -> One; +to_block([One]) -> One; to_block(Other) -> {'__block__', [], reverse(Other)}. %% Errors