mirror of https://github.com/Icinga/icinga2.git
Make the config lexer return an error for unterminated string literals
fixes #7808
This commit is contained in:
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>\}\}\} {
|
||||
|
|
Loading…
Reference in New Issue