add missing string -> LanguageId conversions

forgot to add "php" before.

also add extra variations for existing Bash and Yaml language types
This commit is contained in:
Gered 2024-11-10 12:52:12 -05:00
parent 880a729f48
commit 29cec6445c

View file

@ -86,17 +86,20 @@ impl From<&str> for LanguageId {
"json" => Self::Json,
"lua" => Self::Lua,
"markdown" => Self::Markdown,
"php" => Self::Php,
"python" => Self::Python,
"r" => Self::R,
"ruby" => Self::Ruby,
"rust" => Self::Rust,
"scala" => Self::Scala,
"shellscript" => Self::Bash,
"sh" => Self::Bash,
"swift" => Self::Swift,
"toml" => Self::Toml,
"typescript" => Self::TypeScript,
"typescriptreact" => Self::TypeScriptReact,
"yaml" => Self::Yaml,
"yaml.ansible" => Self::Yaml,
_ => Self::Unknown,
}
}