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:
parent
880a729f48
commit
29cec6445c
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue