mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 13:45:32 +00:00
replaced stay [ ignoring implementation with one that does not interfere with other workarounds (Fixes #2205)
This commit is contained in:
parent
e4f75267d0
commit
ed5387fb8c
2 changed files with 8 additions and 2 deletions
|
@ -489,6 +489,13 @@ namespace Compiler
|
|||
|
||||
bool LineParser::parseSpecial (int code, const TokenLoc& loc, Scanner& scanner)
|
||||
{
|
||||
if (mState==EndState && code==Scanner::S_open)
|
||||
{
|
||||
getErrorHandler().warning ("stray '[' or '(' at the end of the line (ignoring it)",
|
||||
loc);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (code==Scanner::S_newline &&
|
||||
(mState==EndState || mState==BeginState || mState==PotentialEndState))
|
||||
return false;
|
||||
|
|
|
@ -528,8 +528,7 @@ namespace Compiler
|
|||
|
||||
bool Scanner::isWhitespace (char c)
|
||||
{
|
||||
return c==' ' || c=='\t'
|
||||
|| c=='['; ///< \todo disable this when doing more strict compiling
|
||||
return c==' ' || c=='\t';
|
||||
}
|
||||
|
||||
// constructor
|
||||
|
|
Loading…
Reference in a new issue