Fix infinite loop with functions calls
This commit is contained in:
1 file changed
+1
-1
@@ -429,7 +429,7 @@ namespace Upsilon.Parser
|
||||
var openParenthesis = MatchToken(SyntaxKind.OpenParenthesis);
|
||||
var parameters = ImmutableArray.CreateBuilder<ExpressionSyntax>();
|
||||
SyntaxToken current = null;
|
||||
while (Current.Kind != SyntaxKind.CloseParenthesis)
|
||||
while (Current.Kind != SyntaxKind.CloseParenthesis && Current.Kind != SyntaxKind.EndOfFile)
|
||||
{
|
||||
if (Current == current)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user