2
0
mirror of https://github.com/sharkdp/bat synced 2024-11-06 21:20:25 +00:00

assets: add Debian ucf backups to ignored suffixes

Refs https://manpages.debian.org/bullseye/ucf/ucf.1.en.html
This commit is contained in:
Ville Skyttä 2021-08-29 19:19:42 +03:00 committed by David Peter
parent 355a82db54
commit 7c41bd72da
7 changed files with 11 additions and 2 deletions

View File

@ -29,15 +29,18 @@ pub struct SyntaxReferenceInSet<'a> {
pub syntax_set: &'a SyntaxSet,
}
const IGNORED_SUFFIXES: [&str; 10] = [
const IGNORED_SUFFIXES: [&str; 13] = [
// Editor etc backups
"~",
".bak",
".old",
".orig",
// Debian and derivatives apt/dpkg backups
// Debian and derivatives apt/dpkg/ucf backups
".dpkg-dist",
".dpkg-old",
".ucf-dist",
".ucf-new",
".ucf-old",
// Red Hat and derivatives rpm backups
".rpmnew",
".rpmorig",

View File

@ -0,0 +1 @@
// foo.ucf-dist (Debian ucf backup) should highlight same as foo

View File

@ -0,0 +1 @@
// foo.ucf-new (Debian ucf backup) should highlight same as foo

View File

@ -0,0 +1 @@
// foo.ucf-old (Debian ucf backup) should highlight same as foo

View File

@ -0,0 +1 @@
// foo.ucf-dist (Debian ucf backup) should highlight same as foo

View File

@ -0,0 +1 @@
// foo.ucf-new (Debian ucf backup) should highlight same as foo

View File

@ -0,0 +1 @@
// foo.ucf-old (Debian ucf backup) should highlight same as foo