From 2ee8170f74e27f5f385abe1ce1777e489f4c2a58 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 25 Nov 2018 22:06:20 +0100 Subject: [PATCH] Fix infinite loop with functions calls --- Upsilon/Parser/Parser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Upsilon/Parser/Parser.cs b/Upsilon/Parser/Parser.cs index c5d3e48..d0a4282 100644 --- a/Upsilon/Parser/Parser.cs +++ b/Upsilon/Parser/Parser.cs @@ -429,7 +429,7 @@ namespace Upsilon.Parser var openParenthesis = MatchToken(SyntaxKind.OpenParenthesis); var parameters = ImmutableArray.CreateBuilder(); SyntaxToken current = null; - while (Current.Kind != SyntaxKind.CloseParenthesis) + while (Current.Kind != SyntaxKind.CloseParenthesis && Current.Kind != SyntaxKind.EndOfFile) { if (Current == current) {