Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add :otp_eep48 and :otp_has_docs tags #1516

Merged
merged 3 commits into from
Feb 15, 2022
Merged

Add :otp_eep48 and :otp_has_docs tags #1516

merged 3 commits into from
Feb 15, 2022

Conversation

wojtekmach
Copy link
Member

Closes #1515

{:ok, {:/, _, [{function, _, _}, 0]}} when is_atom(function) -> {:function, function}
_ -> :error
case Code.string_to_quoted("& #{string}/0") do
{:ok, {:&, _, [{:/, _, [{function, _, _}, 0]}]}} when is_atom(function) ->
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on Elixir 1.11 we had:

iex> Code.string_to_quoted("+/2")
{:error, {[line: 1, column: 2], "syntax error before: ", "'/'"}}

adding capture fixes it:

iex> Code.string_to_quoted("& +/2")
{:ok, {:&, [line: 1], [{:/, [line: 1], [{:+, [line: 1], nil}, 2]}]}}

@wojtekmach wojtekmach merged commit 7fa36d5 into main Feb 15, 2022
@wojtekmach wojtekmach deleted the wm-fix-tests branch February 15, 2022 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Test failures in ExDoc.Language.ErlangTest
2 participants