Fix parser crashing in repeat-until block

This commit is contained in:
0x4261756D 2024-02-21 15:07:37 +01:00
parent eaba371455
commit fcaf1c1570

View File

@ -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));
}