1
0
mirror of https://github.com/Icinga/icinga2.git synced 2025-04-08 17:05:25 +02:00

Make the config lexer return an error for unterminated string literals

fixes 
This commit is contained in:
Gunnar Beutner 2014-11-28 06:47:52 +01:00
parent ab63fca3d5
commit b5b1be95a2

@ -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>\}\}\} {