This commit is contained in:
nub31
2025-09-11 22:03:30 +02:00
parent 2af3782e32
commit 9c2975d45f
6 changed files with 42 additions and 21 deletions

View File

@@ -44,7 +44,7 @@ public sealed class Parser
while (TryExpectSymbol(Symbol.Import))
{
imports.Add(ExpectIdentifier().Value);
imports.Add(ExpectLiteral(LiteralKind.String).Value);
}
}
catch (ParseException e)
@@ -629,7 +629,14 @@ public sealed class Parser
catch (ParseException ex)
{
_diagnostics.Add(ex.Diagnostic);
Next();
if (HasToken)
{
Next();
}
else
{
break;
}
}
}