mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 03:39:55 +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
@ -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…
x
Reference in New Issue
Block a user