1
0
mirror of https://github.com/sharkdp/bat synced 2026-07-29 18:01:43 +00:00

Reverse precedence of syntax mappings specified on CLI

This commit is contained in:
cyqsimon
2024-01-18 22:41:57 +08:00
parent 15ab4478c9
commit e4d637a3d8
3 changed files with 5 additions and 3 deletions
+2
View File
@@ -41,6 +41,8 @@ pub enum MappingTarget<'a> {
#[derive(Debug, Clone, Default)]
pub struct SyntaxMapping<'a> {
/// User-defined mappings at run time.
///
/// Rules in front have precedence.
custom_mappings: Vec<(GlobMatcher, MappingTarget<'a>)>,
pub(crate) ignored_suffixes: IgnoredSuffixes<'a>,
}