Reorganize tests into a real spec suite

This commit is contained in:
2024-08-04 19:18:43 -03:00
parent 57c160173c
commit e7c2053222
693 changed files with 136 additions and 116 deletions

View File

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