2
0
mirror of https://github.com/sharkdp/bat synced 2024-11-08 19:10:41 +00:00
Commit Graph

12 Commits

Author SHA1 Message Date
cyqsimon
de6d418d42
Remove BuiltinMatcher enum
Explanation added as comments in code
Using plain `Lazy<Option<GlobMatcher>>` is just better
2023-12-11 10:21:04 +08:00
cyqsimon
c016b462c0
STATIC_RULES => BUILTIN_MAPPINGS 2023-12-11 10:21:04 +08:00
cyqsimon
075b5b288a
Matcher parser errors when empty 2023-12-11 10:20:12 +08:00
cyqsimon
7cfd1e0d78
Rerun build script only when necessary 2023-12-11 10:20:12 +08:00
cyqsimon
9f7d70f642
Use regex for matcher parsing
- Somewhat better maintainability I think
2023-12-11 10:20:12 +08:00
cyqsimon
0fea82cff9
Minor improvement of variable naming accuracy 2023-12-11 10:20:11 +08:00
cyqsimon
64840fbbae
join_segments -> build_glob_string
- this is a more descriptive name
2023-12-11 10:20:11 +08:00
cyqsimon
9478d2dfe8
Isolate variables at compile time 2023-12-11 10:20:11 +08:00
cyqsimon
9f4259721a
Fix codegen type declaration 2023-12-11 10:20:11 +08:00
cyqsimon
77e491161c
Ensure lexicographical ordering 2023-12-11 10:20:10 +08:00
cyqsimon
97780f987e
MappingDefModel::into_mapping_list returns MappingList 2023-12-11 10:20:10 +08:00
cyqsimon
d1bc0ef0d4
Build script codegen initial impl 2023-12-11 10:20:10 +08:00