From bdfaa4f1abf8a992b08d2966656ae737d31633f1 Mon Sep 17 00:00:00 2001 From: Lobo Torres Date: Thu, 5 Dec 2024 13:45:11 -0300 Subject: [PATCH] parse: jfdshks --- parse/lex.ha | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parse/lex.ha b/parse/lex.ha index 603c2a8..b87b946 100644 --- a/parse/lex.ha +++ b/parse/lex.ha @@ -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)!;