diff options
author | David Beazley <dave@dabeaz.com> | 2013-05-29 15:45:03 -0500 |
---|---|---|
committer | David Beazley <dave@dabeaz.com> | 2013-05-29 15:45:03 -0500 |
commit | a868c076376eeb7a2e7ede16feffeb0fa35d8acd (patch) | |
tree | 8cbe3fc57c10d3764833b5136d7aa439106a29f4 | |
parent | dc32f83b78ce824987bece64759cd2830a928fae (diff) | |
download | ply-a868c076376eeb7a2e7ede16feffeb0fa35d8acd.tar.gz |
Fixed issue 21
-rw-r--r-- | CHANGES | 4 | ||||
-rw-r--r-- | ply/cpp.py | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,6 +1,10 @@ Version 3.5 --------------------- 05/29/13: beazley + Fixed CPP_INTEGER regex in ply/cpp.py (Issue 21). + Reported by @vbraun. + +05/29/13: beazley Fixed yacc validation bugs when from __future__ import unicode_literals is being used. Reported by Kenn Knowles. @@ -34,7 +34,7 @@ t_CPP_ID = r'[A-Za-z_][\w_]*' # Integer literal def CPP_INTEGER(t): - r'(((((0x)|(0X))[0-9a-fA-F]+)|(\d+))([uU]|[lL]|[uU][lL]|[lL][uU])?)' + r'(((((0x)|(0X))[0-9a-fA-F]+)|(\d+))([uU][lL]|[lL][uU]|[uU]|[lL])?)' return t t_CPP_INTEGER = CPP_INTEGER |