Skip to content

Commit

Permalink
fix: Add .tfvars as a valid hcl file (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysonsantos committed Jul 5, 2024
1 parent f850d3a commit 632cea0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/language/src/target_language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ impl PatternLanguage {
PatternLanguage::Rust => &["rs"],
PatternLanguage::Ruby => &["rb"],
PatternLanguage::Solidity => &["sol"],
PatternLanguage::Hcl => &["hcl", "tf"],
PatternLanguage::Hcl => &["hcl", "tf", "tfvars"],
PatternLanguage::Yaml => &["yaml", "yml"],
PatternLanguage::Sql => &["sql"],
PatternLanguage::Vue => &["vue"],
Expand Down Expand Up @@ -260,7 +260,7 @@ impl PatternLanguage {
"rs" => Some(Self::Rust),
"rb" => Some(Self::Ruby),
"sol" => Some(Self::Solidity),
"hcl" | "tf" => Some(Self::Hcl),
"hcl" | "tf" | "tfvars" => Some(Self::Hcl),
"yaml" | "yml" => Some(Self::Yaml),
"sql" => Some(Self::Sql),
"vue" => Some(Self::Vue),
Expand Down

0 comments on commit 632cea0

Please sign in to comment.