fix ending heredoc identifiers must be on single line

This commit is contained in:
mhoffm
2021-06-26 11:11:34 +02:00
parent bc0b3f1eb0
commit 0ae2fffe6d
5 changed files with 31 additions and 5 deletions

View File

@@ -146,3 +146,26 @@ foo = "hello $${ world"
(literal_value
(string_lit
(template_literal)))))))
================================================================================
tricky heredoc
================================================================================
foo = <<END
contains fake endings
END (ineligible) END
END
--------------------------------------------------------------------------------
(config_file
(body
(attribute
(identifier)
(expression
(template_expr
(heredoc_template
(heredoc_start)
(heredoc_identifier)
(template_literal)
(heredoc_identifier)))))))