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

t_INTEGER regex in cpp.py #21

Closed
vbraun opened this issue Sep 2, 2012 · 1 comment
Closed

t_INTEGER regex in cpp.py #21

vbraun opened this issue Sep 2, 2012 · 1 comment

Comments

@vbraun
Copy link

vbraun commented Sep 2, 2012

To match "1UL" as a single integer, the t_CPP_INTEGER regex in ply/ply/cpp.py shoud be

r'(((((0x)|(0X))[0-9a-fA-F]+)|(\d+))([uU][lL]|[lL][uU]|[uU]|[lL])?)'

Note the different order of [uU][lL] vs. [uU]

@dabeaz
Copy link
Owner

dabeaz commented May 29, 2013

Fixed/Accepted.

@dabeaz dabeaz closed this as completed May 29, 2013
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

No branches or pull requests

2 participants