Fix 5222f1d35c for inactive preprocessor conditional block

This commit is contained in:
Wojtek Figat
2025-08-29 23:04:46 +02:00
parent fcebc57ed0
commit 3f7fe635d8

View File

@@ -538,7 +538,7 @@ namespace Flax.Build.Bindings
if (token.Type == TokenType.Preprocessor)
{
OnPreProcessorToken(ref context, ref token);
while (token.Type == TokenType.Newline)
while (token.Type == TokenType.Newline || token.Value == "endif")
token = context.Tokenizer.NextToken();
}
if (token.Type == TokenType.Colon)