summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormataha <mataha@users.noreply.github.com>2023-08-21 16:53:56 +0200
committerGitHub <noreply@github.com>2023-08-21 10:53:56 -0400
commit962d47e6a1208cf2187cd34c2a7f6cf32e2a4903 (patch)
treefb97beb60e5f46fa30554360c7c3229df51e3043
parent19b6a45abba8cb0ba8a5b7fffedb49501619f90a (diff)
ignore/types: add Prolog file types
This improves the Prolog file type rules. * `.pl` is the most common extension in the wild, though `.pro` is preferred in places where file extension may clash with Perl[1]. * `.P` is used for compatibility with XSB Prolog dialect[2]. PR #2590 [1]: https://www.swi-prolog.org/pldoc/man?section=fileext [2]: https://www.swi-prolog.org/pldoc/man?section=xsb-source
-rw-r--r--CHANGELOG.md2
-rw-r--r--crates/ignore/src/default_types.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 840cfa05..63c04ea6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,7 +11,7 @@ Unreleased changes. Release notes have not yet been written.
Feature enhancements:
* Added or improved file type filtering for Ada, DITA, Elixir, Fuchsia, Gentoo,
- Gradle, GraphQL, Markdown, Raku, TypeScript, USD, V
+ Gradle, GraphQL, Markdown, Prolog, Raku, TypeScript, USD, V
* [FEATURE #1790](https://github.com/BurntSushi/ripgrep/issues/1790):
Add new `--stop-on-nonmatch` flag.
* [FEATURE #2195](https://github.com/BurntSushi/ripgrep/issues/2195):
diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs
index ef728f10..7cec4578 100644
--- a/crates/ignore/src/default_types.rs
+++ b/crates/ignore/src/default_types.rs
@@ -201,6 +201,7 @@ pub const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[
(&["po"], &["*.po"]),
(&["pod"], &["*.pod"]),
(&["postscript"], &["*.eps", "*.ps"]),
+ (&["prolog"], &["*.pl", "*.pro", "*.prolog", "*.P"]),
(&["protobuf"], &["*.proto"]),
(&["ps"], &["*.cdxml", "*.ps1", "*.ps1xml", "*.psd1", "*.psm1"]),
(&["puppet"], &["*.epp", "*.erb", "*.pp", "*.rb"]),