Fix escape sequence for backslashes

fixes #8164
This commit is contained in:
Gunnar Beutner 2015-01-07 08:56:52 +01:00
parent 1073f031c8
commit 2cb9f3011d
1 changed files with 1 additions and 1 deletions

View File

@ -101,8 +101,8 @@ do { \
*/
BOOST_THROW_EXCEPTION(ScriptError("Bad escape sequence found: " + String(yytext), *yylloc));
}
<STRING>\\n { yyextra->m_LexBuffer << "\n"; }
<STRING>\\\\ { yyextra->m_LexBuffer << "\\"; }
<STRING>\\t { yyextra->m_LexBuffer << "\t"; }
<STRING>\\r { yyextra->m_LexBuffer << "\r"; }
<STRING>\\b { yyextra->m_LexBuffer << "\b"; }