1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-01-03 05:10:12 +02:00

ignore/types: add Ada filetypes, including gprbuild and alire

*.adb and *.ads are the usual extensions for Ada source code,
and *.gpr indicates a GPRbuild project file used for Ada, and
these days often being combined with alire for package dependency
resolution. Alire stores a bunch of files named alire.toml in
different directories in your (gitignored) cache/dependencies/...

Closes #2013
This commit is contained in:
Tama McGlinn 2021-10-03 15:31:12 +02:00 committed by Andrew Gallant
parent ee1360cc07
commit 99bf2b01dc
2 changed files with 4 additions and 1 deletions

View File

@ -10,7 +10,7 @@ Unreleased changes. Release notes have not yet been written.
Feature enhancements:
* Added or improved file type filtering for DITA, Elixir, Fuchsia, Gentoo, GraphQL, Markdown, Raku, USD, V
* Added or improved file type filtering for Ada, DITA, Elixir, Fuchsia, Gentoo, GraphQL, Markdown, Raku, USD, V
* [FEATURE #2195](https://github.com/BurntSushi/ripgrep/issues/2195):
When `extra-verbose` mode is enabled in zsh, show extra file type info.
* [FEATURE #2409](https://github.com/BurntSushi/ripgrep/pull/2409):

View File

@ -10,8 +10,10 @@
/// columns (inclusive).
#[rustfmt::skip]
pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("ada", &["*.adb", "*.ads"]),
("agda", &["*.agda", "*.lagda"]),
("aidl", &["*.aidl"]),
("alire", &["alire.toml"]),
("amake", &["*.mk", "*.bp"]),
("asciidoc", &["*.adoc", "*.asc", "*.asciidoc"]),
("asm", &["*.asm", "*.s", "*.S"]),
@ -85,6 +87,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("gap", &["*.g", "*.gap", "*.gi", "*.gd", "*.tst"]),
("gn", &["*.gn", "*.gni"]),
("go", &["*.go"]),
("gprbuild", &["*.gpr"]),
("gradle", &["*.gradle"]),
("graphql", &["*.graphql", "*.graphqls"]),
("groovy", &["*.groovy", "*.gradle"]),