Skip to content

Commit

Permalink
Fixed issue 21
Browse files Browse the repository at this point in the history
  • Loading branch information
dabeaz committed May 29, 2013
1 parent dc32f83 commit a868c07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
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.
Expand Down
2 changes: 1 addition & 1 deletion ply/cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def t_CPP_WS(t):

# 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
Expand Down

0 comments on commit a868c07

Please sign in to comment.