From c0083af7ab5b973f2adf75d9798efda859ed4223 Mon Sep 17 00:00:00 2001 From: Jameel Al-Aziz Date: Sun, 14 Apr 2024 23:08:37 -0700 Subject: [PATCH] Identify Cargo.toml and Cargo.lock as cargo and cargo-lock Introduce dedicated types for Cargo.toml and Cargo.lock files. These are similar to go.mod and go.sum files. --- identify/extensions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/identify/extensions.py b/identify/extensions.py index 12a3343..d427f67 100644 --- a/identify/extensions.py +++ b/identify/extensions.py @@ -341,6 +341,8 @@ '.zshenv': EXTENSIONS['zsh'], 'AUTHORS': EXTENSIONS['txt'], 'BUILD': EXTENSIONS['bzl'], + 'Cargo.toml': EXTENSIONS['toml'] | {'cargo'}, + 'Cargo.lock': EXTENSIONS['toml'] | {'cargo-lock'}, 'CMakeLists.txt': EXTENSIONS['cmake'], 'CHANGELOG': EXTENSIONS['txt'], 'config.ru': EXTENSIONS['rb'],