replaced stay [ ignoring implementation with one that does not interfere with other workarounds (Fixes #2205)

moveref
Marc Zinnschlag 10 years ago
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…
Cancel
Save