forked from mirror/openmw-tes3mp
disabled escape sequences in script strings (doesn't work with Windows paths)
This commit is contained in:
parent
b94e09e030
commit
0d4f2ab3ef
1 changed files with 39 additions and 39 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue