diff --git a/lex.go b/lex.go index 43b551e..2e38ecb 100644 --- a/lex.go +++ b/lex.go @@ -27,5 +27,5 @@ func lexMode(v string) lexModeValue { } } - return lexModeUnknown + return lexModeHcl } diff --git a/lex_test.go b/lex_test.go index a2c5cb5..f7ee378 100644 --- a/lex_test.go +++ b/lex_test.go @@ -9,6 +9,10 @@ func TestLexMode(t *testing.T) { Input string Mode lexModeValue }{ + { + "", + lexModeHcl, + }, { "foo", lexModeHcl,