From ec2dcf9a725d8dabc6870a0e18400df39a789416 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 6 Jul 2021 11:47:33 -0400 Subject: [PATCH] Fix not progressing through input while lexing a token --- assets/parser.d.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/parser.d.erb b/assets/parser.d.erb index e7849be..0b6c3cc 100644 --- a/assets/parser.d.erb +++ b/assets/parser.d.erb @@ -175,7 +175,7 @@ class <%= classname %> uint current_state; for (;;) { - auto decoded = Decoder.decode_code_point(&m_input[m_input_position], m_input_length - m_input_position); + auto decoded = Decoder.decode_code_point(&m_input[m_input_position + attempt_info.length], m_input_length - m_input_position - attempt_info.length); if (decoded.code_point == Decoder.CODE_POINT_INVALID) { lt.token = TOKEN_DECODE_ERROR;