Fix parsing forward enum declaration in scripting api
This commit is contained in:
@@ -242,6 +242,11 @@ namespace Flax.Build.Bindings
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Forward type
|
// Forward type
|
||||||
|
if (token.Value == "enum")
|
||||||
|
{
|
||||||
|
context.Tokenizer.SkipUntil(TokenType.Identifier);
|
||||||
|
token = context.Tokenizer.CurrentToken;
|
||||||
|
}
|
||||||
if (token.Value == "class")
|
if (token.Value == "class")
|
||||||
{
|
{
|
||||||
context.Tokenizer.SkipUntil(TokenType.Identifier);
|
context.Tokenizer.SkipUntil(TokenType.Identifier);
|
||||||
|
|||||||
Reference in New Issue
Block a user