1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-20 15:40:32 +00:00

allow x->(y) instead of (x->y)

This commit is contained in:
Marc Zinnschlag 2014-02-15 12:50:40 +01:00
parent fd665a1994
commit 0d84adb2c6

View File

@ -570,6 +570,14 @@ namespace Compiler
{
if (!mExplicit.empty())
{
if (mRefOp && code==Scanner::S_open)
{
/// \todo add option to disable this workaround
mOperators.push_back ('(');
mTokenLoc = loc;
return true;
}
if (!mRefOp && code==Scanner::S_ref)
{
mRefOp = true;