summaryrefslogtreecommitdiffstats
path: root/tools/idl_parser
diff options
context:
space:
mode:
authornbarth@chromium.org <nbarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-24 11:05:48 +0000
committernbarth@chromium.org <nbarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-24 11:05:48 +0000
commit4c713c47eb7250bcfc48f76e78881769291c25c9 (patch)
tree22f690b74ee8e1263957e2cccd032d91a7813ed0 /tools/idl_parser
parent432517ddf85168b43d1383a1aad73f44ea4ada7d (diff)
downloadchromium_src-4c713c47eb7250bcfc48f76e78881769291c25c9.zip
chromium_src-4c713c47eb7250bcfc48f76e78881769291c25c9.tar.gz
chromium_src-4c713c47eb7250bcfc48f76e78881769291c25c9.tar.bz2
Fix integer regex
BUG=243263 Review URL: https://chromiumcodereview.appspot.com/15860002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202049 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/idl_parser')
-rwxr-xr-xtools/idl_parser/idl_lexer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/idl_parser/idl_lexer.py b/tools/idl_parser/idl_lexer.py
index aa0da06..85ad7e2 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([0-7]*|[Xx][0-9A-Fa-f]+)|[1-9][0-9]*)'
+ r'-?(0([Xx][0-9A-Fa-f]+|[0-7]*)|[1-9][0-9]*)'
return t