hcl/token: heredoc token

This commit is contained in:
Mitchell Hashimoto 2015-11-10 14:02:37 -08:00
parent 82ad2beb52
commit 6c34ace97d
2 changed files with 10 additions and 9 deletions

View File

@ -33,6 +33,7 @@ const (
FLOAT // 123.45
BOOL // true,false
STRING // "abc"
HEREDOC // <<FOO\nbar\nFOO
literal_end
identifier_end
@ -41,7 +42,6 @@ const (
LBRACE // {
COMMA // ,
PERIOD // .
HEREDOC // <<
RBRACK // ]
RBRACE // }

View File

@ -18,6 +18,7 @@ func TestTypeString(t *testing.T) {
{FLOAT, "FLOAT"},
{BOOL, "BOOL"},
{STRING, "STRING"},
{HEREDOC, "HEREDOC"},
{LBRACK, "LBRACK"},
{LBRACE, "LBRACE"},
{COMMA, "COMMA"},