]> git.lizzy.rs Git - rust.git/commitdiff
changed upper bound digit in octal rule to 7
authorArthur Arnold <arthur.arnold@sap.com>
Tue, 13 Jun 2017 20:08:12 +0000 (17:08 -0300)
committerArthur Arnold <arthur.arnold@sap.com>
Tue, 13 Jun 2017 20:08:12 +0000 (17:08 -0300)
src/grammar/lexer.l

index 77737c99496f34757127d29e0040da0ff7f4fa56..91652bfdf2467046f5e35083be2a81933b587de3 100644 (file)
@@ -126,7 +126,7 @@ while    { return WHILE; }
 {ident}  { return IDENT; }
 
 0x[0-9a-fA-F_]+                                    { BEGIN(suffix); return LIT_INTEGER; }
-0o[0-8_]+                                          { BEGIN(suffix); return LIT_INTEGER; }
+0o[0-7_]+                                          { BEGIN(suffix); return LIT_INTEGER; }
 0b[01_]+                                           { BEGIN(suffix); return LIT_INTEGER; }
 [0-9][0-9_]*                                       { BEGIN(suffix); return LIT_INTEGER; }
 [0-9][0-9_]*\.(\.|[a-zA-Z])    { yyless(yyleng - 2); BEGIN(suffix); return LIT_INTEGER; }