Fix infinite loop with functions calls

This commit is contained in:
Deukhoofd 2018-11-25 22:06:20 +01:00
parent 2111f4080c
commit 2ee8170f74
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 1 additions and 1 deletions

View File

@ -429,7 +429,7 @@ namespace Upsilon.Parser
var openParenthesis = MatchToken(SyntaxKind.OpenParenthesis); var openParenthesis = MatchToken(SyntaxKind.OpenParenthesis);
var parameters = ImmutableArray.CreateBuilder<ExpressionSyntax>(); var parameters = ImmutableArray.CreateBuilder<ExpressionSyntax>();
SyntaxToken current = null; SyntaxToken current = null;
while (Current.Kind != SyntaxKind.CloseParenthesis) while (Current.Kind != SyntaxKind.CloseParenthesis && Current.Kind != SyntaxKind.EndOfFile)
{ {
if (Current == current) if (Current == current)
{ {