Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Unified Diff: tools/idl_parser/idl_lexer.py

Issue 22140002: IDL lexer: update integer regex to latest Web IDL spec (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More tests Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/idl_parser/test_lexer/values.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/idl_parser/idl_lexer.py
diff --git a/tools/idl_parser/idl_lexer.py b/tools/idl_parser/idl_lexer.py
index 9b92b3ecce41a239953f0bf1240dab4d7fc13c18..c2569e95aab8296b888262624f1128cad7eac662 100755
--- a/tools/idl_parser/idl_lexer.py
+++ b/tools/idl_parser/idl_lexer.py
@@ -115,7 +115,7 @@ class IDLLexer(object):
return t
def t_integer(self, t):
- r'-?(0([Xx][0-9A-Fa-f]+|[0-7]*)|[1-9][0-9]*)'
+ r'-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)'
return t
« no previous file with comments | « no previous file | tools/idl_parser/test_lexer/values.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698