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

Format charlists, fixes compilation warnings on Elixir 1.17 #186

Merged
merged 2 commits into from
May 26, 2024

Conversation

sabiwara
Copy link
Contributor

Screenshot 2024-05-26 at 12 42 43

defp clauses_to_ranges([{:->, _, [[{:in, _, [byte, range]}, rest], action]} | tail], acc) do
clauses_to_ranges(tail, [{range, {byte, rest, action}} | acc])
defp clauses_to_ranges([{:->, _, [[{:in, _, [byte, range]}, rest], action]} | tail], acc, env) do
range = Macro.expand(range, env)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unlike charlists, sigils are not their own AST, so we need to expand them first.

@michalmuskala michalmuskala merged commit e9b96b6 into michalmuskala:master May 26, 2024
14 checks passed
@michalmuskala
Copy link
Owner

Thank you! ❤️

@sabiwara sabiwara deleted the format-charlists branch May 27, 2024 00:53
@odarriba
Copy link

Any release coming soon (a patch version at least)? Thanks <3

@michalmuskala
Copy link
Owner

This was release in 1.4.2 (and 1.4.3) last week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants