From 982cf1ff3557064c7d4ffb3e279c3af8b4b3ecd5 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 22 Aug 2014 12:29:30 -0700 Subject: [PATCH] hcl: stop number if whitespace /cc @sbinet - The issue was in the lexer. It was seeing: 1.2e-10 e = As: 1.2e-10e --- hcl/lex.go | 1 + 1 file changed, 1 insertion(+) diff --git a/hcl/lex.go b/hcl/lex.go index 90b9bc0..43fade1 100644 --- a/hcl/lex.go +++ b/hcl/lex.go @@ -34,6 +34,7 @@ func (x *hclLex) Lex(yylval *hclSymType) int { // Ignore all whitespace except a newline which we handle // specially later. if unicode.IsSpace(c) { + x.lastNumber = false continue }