-
Notifications
You must be signed in to change notification settings - Fork 21
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
Incorrect format when macro is used while building a binary #81
Comments
I can confirm there is an error in the binary, consider those lines, -define(CHUNK_SIZE, 65535 - 1).
chunkify(<<Binary:(?CHUNK_SIZE)/binary, Rest/binary>>) ->
some code ... Its get reformat as, which is invalide: chunkify(<<Binary:?CHUNK_SIZE/binary, Rest/binary>>) -> |
Right, so… when fixing #74, we'll probably fix this one, too. |
For my case it is. |
This is not the same issue as #74, which deals with removing parentheses from within macro definitions. |
I was able to successfully reformat quite a big codebase and have to say only one thing - What a great job!
The only issue that I found is that I had multiple syntax issues with this pattern:
instead of correct one:
?i2b/1
macro is just a conversion from integer to binary using BIF function without any wrapper.Thank you again for a great tool! 🙏
The text was updated successfully, but these errors were encountered: