1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-05 19:11:42 +00:00

Builtin glob matchers build offload, v2

This commit is contained in:
cyqsimon
2024-02-21 14:56:37 +08:00
parent 6a6b02117b
commit 2b4339663c
2 changed files with 44 additions and 1 deletions
+4
View File
@@ -122,6 +122,10 @@ impl App {
};
let mut syntax_mapping = SyntaxMapping::new();
// start building glob matchers for builtin mappings immediately
// this is an appropriate approach because it's statistically likely that
// all the custom mappings need to be checked
syntax_mapping.start_offload_build_all();
if let Some(values) = self.matches.get_many::<String>("ignored-suffix") {
for suffix in values {