fix: add terraform extension to HCL syntax
@@ -412,7 +412,7 @@ pub enum LapceLanguage {
indent: " ",
code_lens: (DEFAULT_CODE_LENS_LIST, DEFAULT_CODE_LENS_IGNORE_LIST),
sticky_headers: &[],
- extensions: &["hcl"],
+ extensions: &["hcl", "tf"],
},
#[cfg(feature = "lang-html")]
SyntaxProperties {
@@ -1070,7 +1070,7 @@ fn test_haxe_lang() {
}
#[cfg(feature = "lang-hcl")]
fn test_hcl_lang() {
- assert_language(LapceLanguage::Hcl, &["hcl"]);
+ assert_language(LapceLanguage::Hcl, &["hcl", "tf"]);
}
#[cfg(feature = "lang-ocaml")]
fn test_ocaml_lang() {
