Don't parse rebar.lock files as Erlang

The Erlang parser doesn't support this syntax apparently:
https://github.com/WhatsApp/tree-sitter-erlang/issues/3
pull/454/head
Wilfred Hughes 2022-12-19 01:00:56 +07:00
parent d169c7f96c
commit fda897b816
1 changed files with 1 additions and 1 deletions

@ -347,7 +347,7 @@ fn from_name(path: &Path) -> Option<Language> {
| "zprofile" | "zshenv" | "zshrc" => Some(Bash),
"CMakeLists.txt" => Some(CMake),
".emacs" | "_emacs" | "Cask" => Some(EmacsLisp),
"Emakefile" | "rebar.config" | "rebar.config.lock" | "rebar.lock" => Some(Erlang),
"Emakefile" => Some(Erlang),
".arcconfig" | ".auto-changelog" | ".c8rc" | ".htmlhintrc" | ".imgbotconfig"
| ".nycrc" | ".tern-config" | ".tern-project" | ".watchmanconfig" | "Pipfile.lock"
| "composer.lock" | "mcmod.info" => Some(Json),