1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-04-14 00:58:43 +02:00

ignore/types: add 'graphql' type

GraphQL file extensions: .graphql and .graphqls (schema)

We could also add `.gql`, but perhaps it's less correct to do so. We'll
start conservatively here, and we can always add `.gql` later.

Closes #2439, Closes #2508
This commit is contained in:
Jon Parise 2023-05-06 14:56:11 -07:00 committed by Andrew Gallant
parent da8ecddce9
commit 96cfc0ed13
2 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,7 @@ Unreleased changes. Release notes have not yet been written.
Feature enhancements:
* Added or improved file type filtering for Fuchsia
* Added or improved file type filtering for Fuchsia, GraphQL
Bug fixes:

View File

@ -85,6 +85,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("gn", &["*.gn", "*.gni"]),
("go", &["*.go"]),
("gradle", &["*.gradle"]),
("graphql", &["*.graphql", "*.graphqls"]),
("groovy", &["*.groovy", "*.gradle"]),
("gzip", &["*.gz", "*.tgz"]),
("h", &["*.h", "*.hh", "*.hpp"]),