parse: jfdshks

This commit is contained in:
Lobo Torres 2024-12-05 13:45:11 -03:00
parent 1e5ed47497
commit bdfaa4f1ab

View file

@ -320,8 +320,6 @@ fn scanescape2(lex: *lexer) (rune | error) = {
return ("escape sequence", lex.loc.0, lex.loc.1): unterminated;
};
count += 1;
if (count > 6) {
return lex.loc: invalid;
} else if (rn == ';') {
@ -329,6 +327,8 @@ fn scanescape2(lex: *lexer) (rune | error) = {
} else {
memio::appendrune(&buf, rn)!;
};
count += 1;
};
const buf = memio::string(&buf)!;