Skip to content

Commit

Permalink
Identify Cargo.toml and Cargo.lock as cargo and cargo-lock
Browse files Browse the repository at this point in the history
Introduce dedicated types for Cargo.toml and Cargo.lock files. These are
similar to go.mod and go.sum files.
  • Loading branch information
jalaziz committed Apr 15, 2024
1 parent 80f2107 commit c0083af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions identify/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit c0083af

Please sign in to comment.