From 4628d778089d0bf609462af7d5b38997fd9a014f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Wed, 13 Jun 2018 17:11:35 +0200 Subject: [PATCH] ignore/types: add spec file type This is for RPM package SPEC files. Fixes #946, Closes #1449 --- CHANGELOG.md | 2 +- ignore/src/types.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c69bb1fa..5c4b82e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ Performance improvements: Feature enhancements: * Added or improved file type filtering for erb, diff, Gradle, HAML, Org, - Postscript, Skim, Slim, Slime, Typoscript, xml. + Postscript, Skim, Slim, Slime, RPM Spec files, Typoscript, xml. * [FEATURE #1390](https://github.com/BurntSushi/ripgrep/pull/1390): Add new `--no-context-separator` flag that always hides context separators. diff --git a/ignore/src/types.rs b/ignore/src/types.rs index d04091eb..0b446447 100644 --- a/ignore/src/types.rs +++ b/ignore/src/types.rs @@ -280,6 +280,7 @@ const DEFAULT_TYPES: &'static [(&'static str, &'static [&'static str])] = &[ ("sml", &["*.sml", "*.sig"]), ("soy", &["*.soy"]), ("spark", &["*.spark"]), + ("spec", &["*.spec"]), ("sql", &["*.sql", "*.psql"]), ("stylus", &["*.styl"]), ("sv", &["*.v", "*.vg", "*.sv", "*.svh", "*.h"]),