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, pub syntax_set: &'a SyntaxSet,
} }
const IGNORED_SUFFIXES: [&str; 10] = [ const IGNORED_SUFFIXES: [&str; 13] = [
// Editor etc backups // Editor etc backups
"~", "~",
".bak", ".bak",
".old", ".old",
".orig", ".orig",
// Debian and derivatives apt/dpkg backups // Debian and derivatives apt/dpkg/ucf backups
".dpkg-dist", ".dpkg-dist",
".dpkg-old", ".dpkg-old",
".ucf-dist",
".ucf-new",
".ucf-old",
// Red Hat and derivatives rpm backups // Red Hat and derivatives rpm backups
".rpmnew", ".rpmnew",
".rpmorig", ".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