mirror of https://github.com/Icinga/icinga2.git
Config lexer: complain on EOF in heredocs, i.e. {{{abc<EOF>
This commit is contained in:
parent
89b8a8060f
commit
672f497c3a
|
@ -115,6 +115,10 @@ do { \
|
|||
BEGIN(HEREDOC);
|
||||
}
|
||||
|
||||
<HEREDOC><<EOF>> {
|
||||
BOOST_THROW_EXCEPTION(ScriptError("End-of-file while in string literal", DebugInfoRange(yyextra->m_LocationBegin, *yylloc)));
|
||||
}
|
||||
|
||||
<HEREDOC>\}\}\} {
|
||||
BEGIN(INITIAL);
|
||||
|
||||
|
|
Loading…
Reference in New Issue