Skip to content

fix(Lexer): Interpret minus correctly#122

Open
Dossar wants to merge 2 commits intoTomFrost:masterfrom
Dossar:fix/support-minus-sign
Open

fix(Lexer): Interpret minus correctly#122
Dossar wants to merge 2 commits intoTomFrost:masterfrom
Dossar:fix/support-minus-sign

Conversation

@Dossar
Copy link

@Dossar Dossar commented Jun 9, 2022

Addresses #97

Incorporates the suggestion provided in this comment, courtesy of OlivierB-OB: #97 (comment)

Basically, if there is a minus sign for a negative value past the first argument, there is a parsing error. Adding comma to the list of minusNegatesAfter should allow proper interpretation of negative values after the first argument.

@Dossar
Copy link
Author

Dossar commented Jun 10, 2022

@TomFrost The fix in addition to unit tests have been added in this PR. To me it looks good to merge for fixing this issue, but would like your feedback.

Copy link

@chetbox chetbox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a great fix to me and with appropriate tests. 👍🏼 I'm not a maintainer but am commenting in case it's helpful.

@Arihy
Copy link

Arihy commented Aug 26, 2022

Hello @TomFrost, any idea when this PR will be merged ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants