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

Negative integer is parsed as unary expression #342

Closed
eglekaz opened this issue Mar 5, 2025 · 0 comments · Fixed by #344
Closed

Negative integer is parsed as unary expression #342

eglekaz opened this issue Mar 5, 2025 · 0 comments · Fixed by #344
Assignees
Labels
bug Something isn't working

Comments

@eglekaz
Copy link
Collaborator

eglekaz commented Mar 5, 2025

-1 is being parsed as a unary expression and it causes the formatter to add a space between minus and number.
Example:
This:
qbf-lsys.qbf-type = SUBSTRING(qbf-c,3,-1,"CHARACTER":u).

Becomes this:
qbf-lsys.qbf-type = SUBSTRING(qbf-c,3,- 1,"CHARACTER":u).

@eglekaz eglekaz added the bug Something isn't working label Mar 5, 2025
@PauliusKu PauliusKu self-assigned this Mar 5, 2025
@PauliusKu PauliusKu linked a pull request Mar 5, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants