mirror of https://github.com/lapce/lapce.git
fix: add terraform extension to HCL syntax (#1450)
This commit is contained in:
parent
7c993f9435
commit
8fe444b71b
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue