Skip to content

Commit c291e87

Browse files
author
Arthur Arnold
committed
changed upper bound digit in octal rule to 7
1 parent 03abb1b commit c291e87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/grammar/lexer.l

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ while { return WHILE; }
126126
{ident} { return IDENT; }
127127

128128
0x[0-9a-fA-F_]+ { BEGIN(suffix); return LIT_INTEGER; }
129-
0o[0-8_]+ { BEGIN(suffix); return LIT_INTEGER; }
129+
0o[0-7_]+ { BEGIN(suffix); return LIT_INTEGER; }
130130
0b[01_]+ { BEGIN(suffix); return LIT_INTEGER; }
131131
[0-9][0-9_]* { BEGIN(suffix); return LIT_INTEGER; }
132132
[0-9][0-9_]*\.(\.|[a-zA-Z]) { yyless(yyleng - 2); BEGIN(suffix); return LIT_INTEGER; }

0 commit comments

Comments
 (0)