tartrazine/spec/tests/terraform/test_heredoc.txt

66 lines
1.4 KiB
Plaintext
Raw Normal View History

2024-08-03 10:36:47 +00:00
---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