mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-03 16:39:41 +00:00
allow leaving out if in a top-level if-statement
This commit is contained in:
parent
2eeb0eb4f3
commit
0313876d88
1 changed files with 6 additions and 0 deletions
|
@ -71,6 +71,12 @@ namespace Compiler
|
||||||
if (code==Scanner::S_newline) // empty line
|
if (code==Scanner::S_newline) // empty line
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
if (code==Scanner::S_open) /// \todo Option to switch this off
|
||||||
|
{
|
||||||
|
scanner.putbackSpecial (code, loc);
|
||||||
|
return parseKeyword (Scanner::K_if, loc, scanner);
|
||||||
|
}
|
||||||
|
|
||||||
mLineParser.reset();
|
mLineParser.reset();
|
||||||
if (mLineParser.parseSpecial (code, loc, scanner))
|
if (mLineParser.parseSpecial (code, loc, scanner))
|
||||||
scanner.scan (mLineParser);
|
scanner.scan (mLineParser);
|
||||||
|
|
Loading…
Reference in a new issue