...
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user