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

[BUG] mojo format formats a!=0 wrongly. #1963

Closed
soraros opened this issue Mar 16, 2024 · 0 comments
Closed

[BUG] mojo format formats a!=0 wrongly. #1963

soraros opened this issue Mar 16, 2024 · 0 comments
Assignees
Labels
bug Something isn't working mojo Issues that are related to mojo mojo-repo Tag all issues with this label mojo-tooling Tag for all issues related to repl, lldb, lsp, vscode extension.

Comments

@soraros
Copy link
Contributor

soraros commented Mar 16, 2024

Bug description

As title.

Steps to reproduce

fn main():
  a!=0

got turned into

fn main():
  a! = 0

System information

Mojo 24.1 on Docker, Intel Mac
@soraros soraros added bug Something isn't working mojo Issues that are related to mojo labels Mar 16, 2024
@JoeLoser JoeLoser added the mojo-tooling Tag for all issues related to repl, lldb, lsp, vscode extension. label Mar 20, 2024
@jmd1011 jmd1011 self-assigned this Apr 4, 2024
@jmd1011 jmd1011 closed this as completed Apr 4, 2024
patrickdoc pushed a commit that referenced this issue May 2, 2024
We goofed when adding backtick support and caused mblack to parse `!`
incorrectly.

Running mblack on the repo after making this change also caused a bunch
of other files to need formatting, so this PR includes those as well.

Fixes #1963.

MODULAR_ORIG_COMMIT_REV_ID: daad7e9267589460a01cdf9612d8d34134479de9
@ematejska ematejska added the mojo-repo Tag all issues with this label label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mojo Issues that are related to mojo mojo-repo Tag all issues with this label mojo-tooling Tag for all issues related to repl, lldb, lsp, vscode extension.
Projects
None yet
Development

No branches or pull requests

4 participants