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

nimpretty doesn't put space around operators like `a<b` => `a < b` #10200

timotheecour opened this issue Jan 4, 2019 · 0 comments


None yet
1 participant
Copy link

commented Jan 4, 2019


proc main() =
  var a = "asdf"
  var i = 0
  while i<a.len and i<a.len:


expected output:

proc main() =
  var a = "asdf"
  var i = 0
  while i < a.len and i < a.len:


@Araq Araq closed this in #10950 Apr 4, 2019

Araq added a commit that referenced this issue Apr 4, 2019

fixes #10200 (#10950)
* fixes #10200

* add rule for other comparison operators

* add rule for '!='

* add test

* fixed to pass the test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.