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

@ -29,19 +29,19 @@ const (
identifier_beg
IDENT // literals
literal_beg
NUMBER // 12345
FLOAT // 123.45
BOOL // true,false
STRING // "abc"
NUMBER // 12345
FLOAT // 123.45
BOOL // true,false
STRING // "abc"
HEREDOC // <<FOO\nbar\nFOO
literal_end
identifier_end
operator_beg
LBRACK // [
LBRACE // {
COMMA // ,
PERIOD // .
HEREDOC // <<
LBRACK // [
LBRACE // {
COMMA // ,
PERIOD // .
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"},