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,
|
"json" => Self::Json,
|
||||||
"lua" => Self::Lua,
|
"lua" => Self::Lua,
|
||||||
"markdown" => Self::Markdown,
|
"markdown" => Self::Markdown,
|
||||||
|
"php" => Self::Php,
|
||||||
"python" => Self::Python,
|
"python" => Self::Python,
|
||||||
"r" => Self::R,
|
"r" => Self::R,
|
||||||
"ruby" => Self::Ruby,
|
"ruby" => Self::Ruby,
|
||||||
"rust" => Self::Rust,
|
"rust" => Self::Rust,
|
||||||
"scala" => Self::Scala,
|
"scala" => Self::Scala,
|
||||||
"shellscript" => Self::Bash,
|
"shellscript" => Self::Bash,
|
||||||
|
"sh" => Self::Bash,
|
||||||
"swift" => Self::Swift,
|
"swift" => Self::Swift,
|
||||||
"toml" => Self::Toml,
|
"toml" => Self::Toml,
|
||||||
"typescript" => Self::TypeScript,
|
"typescript" => Self::TypeScript,
|
||||||
"typescriptreact" => Self::TypeScriptReact,
|
"typescriptreact" => Self::TypeScriptReact,
|
||||||
"yaml" => Self::Yaml,
|
"yaml" => Self::Yaml,
|
||||||
|
"yaml.ansible" => Self::Yaml,
|
||||||
_ => Self::Unknown,
|
_ => Self::Unknown,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue