fix: add terraform extension to HCL syntax (#1450)

This commit is contained in:
Jakub Panek 2022-10-08 12:50:00 +02:00 committed by GitHub
parent 7c993f9435
commit 8fe444b71b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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