mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-29 11:13:43 +01: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:
parent
355a82db54
commit
7c41bd72da
@ -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",
|
||||
|
1
tests/syntax-tests/highlighted/Ignored suffixes/test.rs.ucf-dist
vendored
Normal file
1
tests/syntax-tests/highlighted/Ignored suffixes/test.rs.ucf-dist
vendored
Normal file
@ -0,0 +1 @@
|
||||
[38;2;117;113;94m//[0m[38;2;117;113;94m foo.ucf-dist (Debian ucf backup) should highlight same as foo[0m
|
1
tests/syntax-tests/highlighted/Ignored suffixes/test.rs.ucf-new
vendored
Normal file
1
tests/syntax-tests/highlighted/Ignored suffixes/test.rs.ucf-new
vendored
Normal file
@ -0,0 +1 @@
|
||||
[38;2;117;113;94m//[0m[38;2;117;113;94m foo.ucf-new (Debian ucf backup) should highlight same as foo[0m
|
1
tests/syntax-tests/highlighted/Ignored suffixes/test.rs.ucf-old
vendored
Normal file
1
tests/syntax-tests/highlighted/Ignored suffixes/test.rs.ucf-old
vendored
Normal file
@ -0,0 +1 @@
|
||||
[38;2;117;113;94m//[0m[38;2;117;113;94m foo.ucf-old (Debian ucf backup) should highlight same as foo[0m
|
1
tests/syntax-tests/source/Ignored suffixes/test.rs.ucf-dist
vendored
Normal file
1
tests/syntax-tests/source/Ignored suffixes/test.rs.ucf-dist
vendored
Normal file
@ -0,0 +1 @@
|
||||
// foo.ucf-dist (Debian ucf backup) should highlight same as foo
|
1
tests/syntax-tests/source/Ignored suffixes/test.rs.ucf-new
vendored
Normal file
1
tests/syntax-tests/source/Ignored suffixes/test.rs.ucf-new
vendored
Normal file
@ -0,0 +1 @@
|
||||
// foo.ucf-new (Debian ucf backup) should highlight same as foo
|
1
tests/syntax-tests/source/Ignored suffixes/test.rs.ucf-old
vendored
Normal file
1
tests/syntax-tests/source/Ignored suffixes/test.rs.ucf-old
vendored
Normal file
@ -0,0 +1 @@
|
||||
// foo.ucf-old (Debian ucf backup) should highlight same as foo
|
Loading…
Reference in New Issue
Block a user