From 9ebb9f27650225e3faa31303638792e08235f624 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Fri, 16 Aug 2024 13:36:11 -0300 Subject: [PATCH] Fix off-by-1 --- src/lexer.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lexer.cr b/src/lexer.cr index cabf71e..5c34087 100644 --- a/src/lexer.cr +++ b/src/lexer.cr @@ -80,8 +80,8 @@ module Tartrazine @state_stack = ["root"] else @dq << {type: "Error", value: String.new(@text[@pos..@pos])} - @pos += 1 end + @pos += 1 break end end