Fix parsing scripting function parameters with function parameter within default parameter value
This commit is contained in:
@@ -382,6 +382,13 @@ namespace Flax.Build.Bindings
|
||||
token = context.Tokenizer.ExpectToken(TokenType.Identifier);
|
||||
currentParam.DefaultValue += "::" + token.Value;
|
||||
}
|
||||
else if (token.Type == TokenType.LeftParent)
|
||||
{
|
||||
currentParam.DefaultValue += token.Value;
|
||||
context.Tokenizer.SkipUntil(TokenType.RightParent, out var parenthesis);
|
||||
currentParam.DefaultValue += parenthesis;
|
||||
currentParam.DefaultValue += context.Tokenizer.CurrentToken.Value;
|
||||
}
|
||||
else
|
||||
{
|
||||
context.Tokenizer.PreviousToken();
|
||||
|
||||
Reference in New Issue
Block a user