You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And I put this here: Thanks for the great tools ! :-)
The text was updated successfully, but these errors were encountered:
Alogani
changed the title
nimpretty creates invalid code in some cireconstances
nimpretty creates invalid code in some circonstances
May 5, 2024
Alogani
changed the title
nimpretty creates invalid code in some circonstances
nimpretty creates invalid code with nested if inside parenthesis
May 5, 2024
Description
Hello,
I encoutered a construct where nimpretty fails.
Nim Version
nim: 2.0.4
nimpretty: 0.2
Example 1: invalid formatting
Current Output
Here is the code as formatted by nimpretty:
This code is invalid
Expected Output
Here is the valid code before formatting:
Example2: Strange (but valid) formatting
I also encouters a formatting that visually seems wrong (but compiles)
Actual Output2
Valid but looks wrong
Expected Output2
Workaround for example2
This compiles and looks better :
Possible Solution
No response
Additional Information
And I put this here: Thanks for the great tools ! :-)
The text was updated successfully, but these errors were encountered: