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

Preserve parentheses on macro usage, not just on macro definition #216

Open
elbrujohalcon opened this issue Nov 19, 2020 · 1 comment
Open
Labels
bug Something isn't working

Comments

@elbrujohalcon
Copy link
Collaborator

elbrujohalcon commented Nov 19, 2020

There is a problem with parentheses used in macro calls, not only definitions. The default formatter turns…

-define(MUL(A, B), A * B).

?MUL((1 + 2), (3 + 4)).

…into…

-define(MUL(A, B), A * B).

?MUL(1 + 2, 3 + 4).

With parens in the call, it's 21, without them it's 11.

Originally posted by @michalmuskala in #74 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant