make stray names in the begin line a warning instead of an error

deque
Marc Zinnschlag 11 years ago
parent 6a3ff211b1
commit e33ee52b91

@ -51,6 +51,12 @@ namespace Compiler
/// \todo allow this workaround to be disabled for newer scripts
}
if (mState==BeginCompleteState)
{
reportWarning ("Stray string (" + name + ") after begin statement", loc);
return true;
}
return Parser::parseName (name, loc, scanner);
}

Loading…
Cancel
Save