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) {