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 #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…
x
Reference in New Issue
Block a user