mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 15:14:07 +02:00
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);
|
BEGIN(HEREDOC);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<HEREDOC><<EOF>> {
|
||||||
|
BOOST_THROW_EXCEPTION(ScriptError("End-of-file while in string literal", DebugInfoRange(yyextra->m_LocationBegin, *yylloc)));
|
||||||
|
}
|
||||||
|
|
||||||
<HEREDOC>\}\}\} {
|
<HEREDOC>\}\}\} {
|
||||||
BEGIN(INITIAL);
|
BEGIN(INITIAL);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user