diff options
author | Andrea Leopardi <an.leopardi@gmail.com> | 2022-01-10 08:14:28 +0100 |
---|---|---|
committer | Andrea Leopardi <an.leopardi@gmail.com> | 2022-01-10 08:14:28 +0100 |
commit | 28da7f6d2db032185ca5d0bd39428e3d08073749 (patch) | |
tree | 6292ba44bc73582d849c2632d5312446710000cb | |
parent | 11b643d892469e2a5a72b6ed8753edd05980b044 (diff) | |
download | elixir-andrea/macro-docs.tar.gz |
FIXUPandrea/macro-docs
-rw-r--r-- | lib/elixir/lib/macro.ex | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/elixir/lib/macro.ex b/lib/elixir/lib/macro.ex index 551c3dcbc..4928fd00a 100644 --- a/lib/elixir/lib/macro.ex +++ b/lib/elixir/lib/macro.ex @@ -1246,7 +1246,7 @@ defmodule Macro do defp interpolate(ast, fun), do: interpolate(ast, "\"", "\"", fun) - defp interpolate({:<<>>, _, [parts]}, left, right, _) when left in [~s[\"""\n], ~s['''\n]] do + defp interpolate({:<<>>, _, [parts]}, left, right, _) when left in [~s["""\n], ~s['''\n]] do <<left::binary, parts::binary, right::binary>> end @@ -1519,7 +1519,7 @@ defmodule Macro do end end - @doc \""" + @doc """ Receives an AST node and expands it once. The following contents are expanded: @@ -1597,7 +1597,6 @@ defmodule Macro do end """ - def expand_once(ast, env) do elem(do_expand_once(ast, env), 0) end @@ -2139,7 +2138,7 @@ defmodule Macro do :not_callable # <|>, ^^^, and ~~~ are deprecated - atom in [:"::", :^^^, :~~~, :<|>] -> + atom in [:"::", :"^^^", :"~~~", :"<|>"] -> :quoted_operator operator?(atom, 1) or operator?(atom, 2) -> |