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 |