diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2017-01-24 23:43:28 +0000 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2017-01-25 00:02:37 +0000 |
commit | f635033e3e953e74d67b76a520c9760786330af5 (patch) | |
tree | 8e41d7d07c489edbfb45f1d4ffff921b2f6bc265 /vendor/github.com/hashicorp/hcl/hcl/parser/parser.go | |
parent | 0f4344348419ed6c3ee4236188e456d79e2d51b4 (diff) |
Switch to scl, an extension of hcl
Diffstat (limited to 'vendor/github.com/hashicorp/hcl/hcl/parser/parser.go')
-rw-r--r-- | vendor/github.com/hashicorp/hcl/hcl/parser/parser.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vendor/github.com/hashicorp/hcl/hcl/parser/parser.go b/vendor/github.com/hashicorp/hcl/hcl/parser/parser.go index 476ed04..8dd73e0 100644 --- a/vendor/github.com/hashicorp/hcl/hcl/parser/parser.go +++ b/vendor/github.com/hashicorp/hcl/hcl/parser/parser.go @@ -346,7 +346,7 @@ func (p *Parser) listType() (*ast.ListType, error) { } } switch tok.Type { - case token.NUMBER, token.FLOAT, token.STRING, token.HEREDOC: + case token.BOOL, token.NUMBER, token.FLOAT, token.STRING, token.HEREDOC: node, err := p.literalType() if err != nil { return nil, err @@ -388,8 +388,6 @@ func (p *Parser) listType() (*ast.ListType, error) { } l.Add(node) needComma = true - case token.BOOL: - // TODO(arslan) should we support? not supported by HCL yet case token.LBRACK: // TODO(arslan) should we support nested lists? Even though it's // written in README of HCL, it's not a part of the grammar |