This is because UClassFactoryUC is parsing the class name and default properties ahead of time.
As you can see in the code below, there is nothing that handles multiline comments.
It looks like multiline comments was added later on and they simply forgot, or were too lazy to add the code in the factory.
Code: Select all
// Get script text.
ScriptText.Logf( TEXT("%s\r\n"), *StrLine );
// Stub out the comments.
INT Pos = StrLine.InStr(TEXT("//"));
if( Pos>=0 )
StrLine = StrLine.Left( Pos );
Str=*StrLine;
// Get class name.
if( ClassName==TEXT("") && (Temp=appStrfind(Str, TEXT("class")))!=0 )
{
Temp+=6;
ParseToken( Temp, ClassName, 0 );
}
if
( BaseClassName==TEXT("")
&& ((Temp=appStrfind(Str, TEXT("expands")))!=0 || (Temp=appStrfind(Str, TEXT("extends")))!=0) )
{
Temp+=7;
ParseToken( Temp, BaseClassName, 0 );
while( BaseClassName.Right(1)==TEXT(";") )
BaseClassName = BaseClassName.LeftChop( 1 );
}