mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-19 08:11:33 +00:00
fixed problem with parsing optional string arguments
This commit is contained in:
parent
100c6a42a5
commit
d9677cb33e
3 changed files with 17 additions and 13 deletions
|
@ -650,7 +650,7 @@ namespace MWDialogue
|
||||||
locals = mEnvironment.mScriptManager->getLocals (actorScript);
|
locals = mEnvironment.mScriptManager->getLocals (actorScript);
|
||||||
}
|
}
|
||||||
|
|
||||||
Compiler::ScriptParser parser(mErrorHandler,mCompilerContext, locals);
|
Compiler::ScriptParser parser(mErrorHandler,mCompilerContext, locals, false);
|
||||||
|
|
||||||
scanner.scan (parser);
|
scanner.scan (parser);
|
||||||
if(mErrorHandler.isGood())
|
if(mErrorHandler.isGood())
|
||||||
|
|
|
@ -77,4 +77,3 @@ namespace Compiler
|
||||||
mOutput.clear();
|
mOutput.clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,11 @@ namespace Compiler
|
||||||
mState = CommaState;
|
mState = CommaState;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
else if (code==Scanner::S_newline && mState==StartState)
|
||||||
|
{
|
||||||
|
scanner.putbackSpecial (code, loc);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return Parser::parseSpecial (code, loc, scanner);
|
return Parser::parseSpecial (code, loc, scanner);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue