mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-01 13:20:29 +00:00
workaround for garbage after an end statement
This commit is contained in:
parent
dfe29db9cb
commit
151ecaad04
@ -45,7 +45,10 @@ namespace Compiler
|
|||||||
reportWarning ("Names for script " + mName + " do not match", loc);
|
reportWarning ("Names for script " + mName + " do not match", loc);
|
||||||
|
|
||||||
mState = EndCompleteState;
|
mState = EndCompleteState;
|
||||||
return true;
|
return false; // we are stopping here, because there might be more garbage on the end line,
|
||||||
|
// that we must ignore.
|
||||||
|
//
|
||||||
|
/// \todo allow this workaround to be disabled for newer scripts
|
||||||
}
|
}
|
||||||
|
|
||||||
return Parser::parseName (name, loc, scanner);
|
return Parser::parseName (name, loc, scanner);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user