Make the config lexer return an error for unterminated string literals

fixes #7808
This commit is contained in:
Gunnar Beutner 2014-11-28 06:47:52 +01:00
parent ab63fca3d5
commit b5b1be95a2
1 changed files with 2 additions and 0 deletions

View File

@ -122,6 +122,8 @@ do { \
yyextra->m_LexBuffer << *yptr++;
}
<STRING><<EOF>> { BOOST_THROW_EXCEPTION(ConfigError("End-of-file while in string literal") << errinfo_debuginfo(*yylloc)); }
\{\{\{ { yyextra->m_LexBuffer.str(""); yyextra->m_LexBuffer.clear(); BEGIN(HEREDOC); }
<HEREDOC>\}\}\} {