mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-24 21:11:34 +00:00
make stray names in the begin line a warning instead of an error
This commit is contained in:
parent
6a3ff211b1
commit
e33ee52b91
1 changed files with 6 additions and 0 deletions
|
@ -51,6 +51,12 @@ namespace Compiler
|
||||||
/// \todo allow this workaround to be disabled for newer scripts
|
/// \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);
|
return Parser::parseName (name, loc, scanner);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue