Fixes infinite loop in parsing blocks
This commit is contained in:
parent
55206f3807
commit
8f91b7f550
|
@ -103,7 +103,7 @@ namespace Upsilon.Parser
|
||||||
{
|
{
|
||||||
var statements = ImmutableArray.CreateBuilder<StatementSyntax>();
|
var statements = ImmutableArray.CreateBuilder<StatementSyntax>();
|
||||||
SyntaxToken current = null;
|
SyntaxToken current = null;
|
||||||
while (!endTokens.Contains(Current.Kind))
|
while (!endTokens.Contains(Current.Kind) && Current.Kind != SyntaxKind.EndOfFile)
|
||||||
{
|
{
|
||||||
if (current == Current)
|
if (current == Current)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue