mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +00:00
disabled escape sequences in script strings (doesn't work with Windows paths)
This commit is contained in:
parent
b94e09e030
commit
0d4f2ab3ef
@ -316,14 +316,15 @@ namespace Compiler
|
|||||||
name += c;
|
name += c;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (c=='\\')
|
// ignoring escape sequences for now, because they are messing up stupid Windows path names.
|
||||||
{
|
// else if (c=='\\')
|
||||||
if (!get (c))
|
// {
|
||||||
{
|
// if (!get (c))
|
||||||
mErrorHandler.error ("incomplete escape sequence", mLoc);
|
// {
|
||||||
break;
|
// mErrorHandler.error ("incomplete escape sequence", mLoc);
|
||||||
}
|
// break;
|
||||||
}
|
// }
|
||||||
|
// }
|
||||||
else if (c=='\n')
|
else if (c=='\n')
|
||||||
{
|
{
|
||||||
mErrorHandler.error ("incomplete string or name", mLoc);
|
mErrorHandler.error ("incomplete string or name", mLoc);
|
||||||
@ -513,4 +514,3 @@ namespace Compiler
|
|||||||
mPutbackLoc = loc;
|
mPutbackLoc = loc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user