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:
parent
11de47961f
commit
982cf1ff35
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user