1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00

disabled escape sequences in script strings (doesn't work with Windows paths)

This commit is contained in:
Marc Zinnschlag 2010-08-12 19:41:40 +02:00
parent b94e09e030
commit 0d4f2ab3ef

View File

@ -316,14 +316,15 @@ namespace Compiler
name += c;
break;
}
else if (c=='\\')
{
if (!get (c))
{
mErrorHandler.error ("incomplete escape sequence", mLoc);
break;
}
}
// ignoring escape sequences for now, because they are messing up stupid Windows path names.
// else if (c=='\\')
// {
// if (!get (c))
// {
// mErrorHandler.error ("incomplete escape sequence", mLoc);
// break;
// }
// }
else if (c=='\n')
{
mErrorHandler.error ("incomplete string or name", mLoc);
@ -513,4 +514,3 @@ namespace Compiler
mPutbackLoc = loc;
}
}