Config lexer: complain on EOF in heredocs, i.e. {{{abc<EOF>

This commit is contained in:
Alexander A. Klimov 2019-09-26 13:06:22 +02:00
parent 89b8a8060f
commit 672f497c3a
1 changed files with 4 additions and 0 deletions

View File

@ -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);