summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@plataformatec.com.br>2018-04-04 13:11:16 +0200
committerJosé Valim <jose.valim@plataformatec.com.br>2018-04-04 13:11:16 +0200
commit24bf72eb649f7b5b02d9d21f676fe37674f4b9e1 (patch)
treec7cd03e8617e7989315300662440976d1ad1b105
parentf20774547b945d6a8756f2fd7bdb56208084ab4c (diff)
downloadelixir-24bf72eb649f7b5b02d9d21f676fe37674f4b9e1.tar.gz
Ensure Macro module can bootstrap
-rw-r--r--lib/elixir/lib/macro.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/elixir/lib/macro.ex b/lib/elixir/lib/macro.ex
index fee558edc..c4c8d617f 100644
--- a/lib/elixir/lib/macro.ex
+++ b/lib/elixir/lib/macro.ex
@@ -874,7 +874,7 @@ defmodule Macro do
defp sigil_call({sigil, _, [{:<<>>, _, _} = parts, args]} = ast, fun)
when is_atom(sigil) and is_list(args) do
case Atom.to_string(sigil) do
- <<"sigil_", name>> when name in ?A..?Z ->
+ <<"sigil_", name>> when name >= ?A and name <= ?Z ->
{:<<>>, _, [binary]} = parts
formatted =
@@ -888,7 +888,7 @@ defmodule Macro do
{:ok, fun.(ast, formatted)}
- <<"sigil_", name>> when name in ?a..?z ->
+ <<"sigil_", name>> when name >= ?a and name <= ?z ->
{:ok, fun.(ast, "~" <> <<name>> <> interpolate(parts, fun) <> sigil_args(args, fun))}
_ ->