Empty files are HCL
This commit is contained in:
parent
3fc289c4d2
commit
b00a1b045d
2
lex.go
2
lex.go
@ -27,5 +27,5 @@ func lexMode(v string) lexModeValue {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return lexModeUnknown
|
return lexModeHcl
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,10 @@ func TestLexMode(t *testing.T) {
|
|||||||
Input string
|
Input string
|
||||||
Mode lexModeValue
|
Mode lexModeValue
|
||||||
}{
|
}{
|
||||||
|
{
|
||||||
|
"",
|
||||||
|
lexModeHcl,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"foo",
|
"foo",
|
||||||
lexModeHcl,
|
lexModeHcl,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user