From fd6e06ba477430ff092aa07cbc2415a26a150031 Mon Sep 17 00:00:00 2001 From: Katy Moe Date: Thu, 2 Dec 2021 00:17:56 +0000 Subject: hclsyntax: test for invalid whitespace heredoc A heredoc cannot be introduced by a line ending in whitespace. For example, the first line of a heredoc whose delimeter is `FOO` can be either '< Date: Wed, 2 Feb 2022 16:41:49 +0000 Subject: add further tests for indented heredocs --- hclsyntax/scan_tokens_test.go | 144 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 144 insertions(+) (limited to 'hclsyntax') diff --git a/hclsyntax/scan_tokens_test.go b/hclsyntax/scan_tokens_test.go index 72dcc6f..c453738 100644 --- a/hclsyntax/scan_tokens_test.go +++ b/hclsyntax/scan_tokens_test.go @@ -1507,6 +1507,150 @@ EOT }, }, }, + { + `<