From: Alexander A. Klimov Date: Thu, 26 Sep 2019 11:06:22 +0000 (+0200) Subject: Config lexer: complain on EOF in heredocs, i.e. {{{abc X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=672f497c3a80c0e46e33437ed6962ffb9dcfc398;p=icinga2 Config lexer: complain on EOF in heredocs, i.e. {{{abc --- diff --git a/lib/config/config_lexer.ll b/lib/config/config_lexer.ll index 71f1b96c7..fcf603411 100644 --- a/lib/config/config_lexer.ll +++ b/lib/config/config_lexer.ll @@ -115,6 +115,10 @@ do { \ BEGIN(HEREDOC); } +<> { + BOOST_THROW_EXCEPTION(ScriptError("End-of-file while in string literal", DebugInfoRange(yyextra->m_LocationBegin, *yylloc))); + } + \}\}\} { BEGIN(INITIAL);