hcl: stop number if whitespace

/cc @sbinet - The issue was in the lexer. It was seeing:

1.2e-10
e =

As:

1.2e-10e
This commit is contained in:
Mitchell Hashimoto 2014-08-22 12:29:30 -07:00
parent 11de47961f
commit 982cf1ff35

View File

@ -34,6 +34,7 @@ func (x *hclLex) Lex(yylval *hclSymType) int {
// Ignore all whitespace except a newline which we handle // Ignore all whitespace except a newline which we handle
// specially later. // specially later.
if unicode.IsSpace(c) { if unicode.IsSpace(c) {
x.lastNumber = false
continue continue
} }