Empty files are HCL

This commit is contained in:
Mitchell Hashimoto 2014-09-15 09:40:47 -07:00
parent 3fc289c4d2
commit b00a1b045d
2 changed files with 5 additions and 1 deletions

2
lex.go
View File

@ -27,5 +27,5 @@ func lexMode(v string) lexModeValue {
}
}
return lexModeUnknown
return lexModeHcl
}

View File

@ -9,6 +9,10 @@ func TestLexMode(t *testing.T) {
Input string
Mode lexModeValue
}{
{
"",
lexModeHcl,
},
{
"foo",
lexModeHcl,