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

Incorrect juxtaposition with radical symbols #530

Closed
agdestein opened this issue Dec 30, 2021 · 0 comments
Closed

Incorrect juxtaposition with radical symbols #530

agdestein opened this issue Dec 30, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@agdestein
Copy link

Since version 1.7, Julia allows juxtaposition with radical symbols, e.g. 3√2, 2∛27 (see JuliaLang/julia#40173).

JuliaFormatter seems to to interpret these expressions as binary operations, adding whitespace: format_text("3√2") returns "3 √ 2", which is not valid syntax (both 3√2 and 3√ 2 are valid expressions, but 3 √2 and 3 √ 2 are not).

Version: Julia 1.7.1, JuliaFormatter 0.21.0

@domluna domluna added the bug Something isn't working label Dec 30, 2021
domluna added a commit that referenced this issue Dec 30, 2021
Radical operators were introduced in 1.7 which require no surrounding whitespace.
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

2 participants