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

Formatter: String interpolation with macro expansion #9154

Open
Tracked by #13002
straight-shoota opened this issue Apr 22, 2020 · 1 comment
Open
Tracked by #13002

Formatter: String interpolation with macro expansion #9154

straight-shoota opened this issue Apr 22, 2020 · 1 comment

Comments

@straight-shoota
Copy link
Member

When a string interpolation contains a macro expansion, it results in three consecutive curly braces: "#{{{ macro_expression }}}". Having spaces in between helps reading the code: "#{ {{ macro_expression }} }".
The formatter currently removes those spaces. I think it should rather add them when missing to improve readability.

@waj
Copy link
Member

waj commented Apr 22, 2020

Should it add space also for other expressions with curly braces? (tuples, hashes)

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

No branches or pull requests

2 participants