summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTama McGlinn <t.mcglinn@gmail.com>2021-10-03 15:31:12 +0200
committerAndrew Gallant <jamslam@gmail.com>2023-07-08 18:52:42 -0400
commit99bf2b01dc261bccc6912ad733fc5f353ac411d5 (patch)
tree94a010cf2ec0ea70162bc1a743ae93f9b2596086
parentee1360cc07beacbd89cc75affc855e74d76831df (diff)
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
-rw-r--r--CHANGELOG.md2
-rw-r--r--crates/ignore/src/default_types.rs3
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cbe3b3fb..feef920f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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):
diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index 102981b4..6d0f8824 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -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"]),