diff options
Diffstat (limited to 'tests/snippets/terraform/test_heredoc.txt')
-rw-r--r-- | tests/snippets/terraform/test_heredoc.txt | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/tests/snippets/terraform/test_heredoc.txt b/tests/snippets/terraform/test_heredoc.txt new file mode 100644 index 0000000..a8b1cb3 --- /dev/null +++ b/tests/snippets/terraform/test_heredoc.txt @@ -0,0 +1,65 @@ +---input--- +resource "local_file" "heredoc" { + content = <<-DOC + heredoc content + DOC +} + +resource "local_file" "heredoc" { + content = <<DOC + heredoc content + DOC +} + +---tokens--- +'resource' Keyword.Reserved +' ' Text.Whitespace +'"local_file"' Name.Class +' ' Text.Whitespace +'"heredoc"' Name.Variable +' ' Text.Whitespace +'{' Punctuation +'\n' Text.Whitespace + +' ' Text.Whitespace +'content' Name.Attribute +' ' Text.Whitespace +'=' Operator +' ' Text.Whitespace +'<<-' Operator +'DOC' Literal.String.Delimiter +'\n' Literal.String.Heredoc + +' heredoc content\n' Literal.String.Heredoc + +' DOC\n' Literal.String.Delimiter + +'}' Punctuation +'\n' Text.Whitespace + +'\n' Text.Whitespace + +'resource' Keyword.Reserved +' ' Text.Whitespace +'"local_file"' Name.Class +' ' Text.Whitespace +'"heredoc"' Name.Variable +' ' Text.Whitespace +'{' Punctuation +'\n' Text.Whitespace + +' ' Text.Whitespace +'content' Name.Attribute +' ' Text.Whitespace +'=' Operator +' ' Text.Whitespace +'<<' Operator +'DOC' Literal.String.Delimiter +'\n' Literal.String.Heredoc + +' heredoc content\n' Literal.String.Heredoc + +' DOC\n' Literal.String.Delimiter + +'}' Punctuation +'\n' Text.Whitespace |