-
Notifications
You must be signed in to change notification settings - Fork 597
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
Recognize integer multicharacter constants like 'ABCD' #350
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind adding some description to your PR explaining the feature you're implementing, where it's defined, and so on? Also, add tests
@@ -448,11 +448,11 @@ def test_char_constants(self): | |||
self.assertLexerError("'", ERR_UNMATCHED_QUOTE) | |||
self.assertLexerError("'b\n", ERR_UNMATCHED_QUOTE) | |||
self.assertLexerError("'\\xaa\n'", ERR_UNMATCHED_QUOTE) | |||
|
|||
self.assertLexerError(r"'\12a'", ERR_INVALID_CCONST) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why you're modifying these tests, without adding any new tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added new tests.
The feature I am adding is defined here - 5th case. Put simply, pycparser thought a statement like this is an error: It is likely possible to just modify |
Thanks for adding the information. |
Recognize integer multicharacter constants like 'ABCD' (eliben#350)
No description provided.