From fcaf1c157046624640781db71dab6d582a90d975 Mon Sep 17 00:00:00 2001 From: 0x4261756D <38735823+0x4261756D@users.noreply.github.com> Date: Wed, 21 Feb 2024 15:07:37 +0100 Subject: [PATCH] Fix parser crashing in repeat-until block --- Parser.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Parser.cs b/Parser.cs index 9ab4064..1550569 100644 --- a/Parser.cs +++ b/Parser.cs @@ -463,7 +463,8 @@ class Parser tokens[index].type != TokenType.Return && tokens[index].type != TokenType.End && tokens[index].type != TokenType.Elseif && - tokens[index].type != TokenType.Else) + tokens[index].type != TokenType.Else && + tokens[index].type != TokenType.Until) { stats.Add(ParseStat(tokens)); }