Skip to content

Commit

Permalink
changed upper bound digit in octal rule to 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Arnold committed Jun 13, 2017
1 parent 03abb1b commit c291e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/grammar/lexer.l
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down

0 comments on commit c291e87

Please sign in to comment.