Browse Source

fix apostrophes in number literals

master
Martin Dørum 3 years ago
parent
commit
d8239aaef4
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      lib/parse/lex.c

+ 2
- 0
lib/parse/lex.c View File

while (len < sizeof(buffer)) { while (len < sizeof(buffer)) {
int ch = peek_ch(lexer); int ch = peek_ch(lexer);
if (ch == '\'') { if (ch == '\'') {
read_ch(lexer);
continue; continue;
} }


while (fraction_len < sizeof(buffer)) { while (fraction_len < sizeof(buffer)) {
int ch = peek_ch(lexer); int ch = peek_ch(lexer);
if (ch == '\'') { if (ch == '\'') {
read_ch(lexer);
continue; continue;
} }



Loading…
Cancel
Save