Fix suffixexp.argsfirstarg expecting ')' instead of name after ':'
This commit is contained in:
parent
3a6e024c9b
commit
ae4a3e9993
@ -1018,7 +1018,7 @@ class Parser
|
||||
{
|
||||
throw new Exception($"Index {index} out of bounds of {tokens.Length}, expected name as first arg after `:` in args suffix in suffix-expression starting at {suffixStartRegion}");
|
||||
}
|
||||
if(tokens[index].type != TokenType.RoundClosed)
|
||||
if(tokens[index].type != TokenType.Name)
|
||||
{
|
||||
throw new Exception($"{tokens[index].region}: Expected name as first arg after `:` in args suffix in suffix-expression at {suffixStartRegion}, got {tokens[index].type}");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user