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
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+[38;2;117;113;94m//[0m[38;2;117;113;94m foo.ucf-dist (Debian ucf backup) should highlight same as foo[0m
tests/syntax-tests/highlighted/Ignored suffixes/test.rs.ucf-newnew file+1
@@ -0,0 +1 @@
1+[38;2;117;113;94m//[0m[38;2;117;113;94m foo.ucf-new (Debian ucf backup) should highlight same as foo[0m
tests/syntax-tests/highlighted/Ignored suffixes/test.rs.ucf-oldnew file+1
@@ -0,0 +1 @@
1+[38;2;117;113;94m//[0m[38;2;117;113;94m foo.ucf-old (Debian ucf backup) should highlight same as foo[0m
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