mirror of https://github.com/Icinga/icinga2.git
Merge pull request #7541 from Icinga/bugfix/heredoc-eof
Config lexer: complain on EOF in heredocs, i.e. {{{abc<EOF>
This commit is contained in:
commit
6103f53c5b
|
@ -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…
Reference in New Issue