on master help sign in
assets: add Debian ucf backups to ignored suffixes

Refs https://manpages.debian.org/bullseye/ucf/ucf.1.en.html

commit7c41bd72dac7960f40b545002ddc1b0b0aae13d8 authorVille Skyttä <ville.skytta@iki.fi> dateSun 29 Aug 2021, 19:19 (5 years ago) parent355a82d
7 files changed+11−2
src/assets.rs+5−2 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.ucf-dist+1 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.ucf-new+1 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.ucf-old+1 tests/syntax-tests/source/Ignored suffixes/test.rs.ucf-dist+1 tests/syntax-tests/source/Ignored suffixes/test.rs.ucf-new+1 tests/syntax-tests/source/Ignored suffixes/test.rs.ucf-old+1
src/assets.rs+5−2
@@ -29,15 +29,18 @@ pub struct SyntaxReferenceInSet<'a> {
2929 pub syntax_set: &'a SyntaxSet,
3030}
3131
32−const IGNORED_SUFFIXES: [&str; 10] = [
32+const IGNORED_SUFFIXES: [&str; 13] = [
3333 // Editor etc backups
3434 "~",
3535 ".bak",
3636 ".old",
3737 ".orig",
38− // Debian and derivatives apt/dpkg backups
38+ // Debian and derivatives apt/dpkg/ucf backups
3939 ".dpkg-dist",
4040 ".dpkg-old",
41+ ".ucf-dist",
42+ ".ucf-new",
43+ ".ucf-old",
4144 // Red Hat and derivatives rpm backups
4245 ".rpmnew",
4346 ".rpmorig",
tests/syntax-tests/highlighted/Ignored suffixes/test.rs.ucf-distnew file+1
@@ -0,0 +1 @@
1+// foo.ucf-dist (Debian ucf backup) should highlight same as foo
tests/syntax-tests/highlighted/Ignored suffixes/test.rs.ucf-newnew file+1
@@ -0,0 +1 @@
1+// foo.ucf-new (Debian ucf backup) should highlight same as foo
tests/syntax-tests/highlighted/Ignored suffixes/test.rs.ucf-oldnew file+1
@@ -0,0 +1 @@
1+// foo.ucf-old (Debian ucf backup) should highlight same as foo
tests/syntax-tests/source/Ignored suffixes/test.rs.ucf-distnew file+1
@@ -0,0 +1 @@
1+// foo.ucf-dist (Debian ucf backup) should highlight same as foo
tests/syntax-tests/source/Ignored suffixes/test.rs.ucf-newnew file+1
@@ -0,0 +1 @@
1+// foo.ucf-new (Debian ucf backup) should highlight same as foo
tests/syntax-tests/source/Ignored suffixes/test.rs.ucf-oldnew file+1
@@ -0,0 +1 @@
1+// foo.ucf-old (Debian ucf backup) should highlight same as foo