1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-07-04 22:23:24 +01:00
Commit Graph

23 Commits

Author SHA1 Message Date
75cdabaf13 Relax syntax mapping rule restrictions to allow brace expansion 2024-02-20 14:24:51 +08:00
1a54c9bf6d Eliminate dependency on serde's "derive" feature 2024-02-08 15:55:30 -08:00
9f36a7a284 Minor codestyle improvements 2024-01-18 23:07:11 +08:00
daf33709a0 Additional sanity check for matcher parser 2023-12-11 10:21:06 +08:00
12fa2cb1eb - is not a legal character in variable name 2023-12-11 10:21:06 +08:00
0c1b80faab Impl per-target syntax mappings 2023-12-11 10:21:05 +08:00
2c9bf229e1 Add doc comment for BUILTIN_MAPPINGS 2023-12-11 10:21:05 +08:00
822e81bb24 Suppress clippy warning for MappingTarget in build script 2023-12-11 10:21:05 +08:00
4ad3002543 s/Lazy<GlobMatcher>/Lazy<Option<GlobMatcher>>/ 2023-12-11 10:21:05 +08:00
1c7c9a6b6d Split syntax_mapping/builtin.rs 2023-12-11 10:21:05 +08:00
0c93ca80f4 Guard against duplicate matchers in build script 2023-12-11 10:21:04 +08:00
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
c016b462c0 STATIC_RULES => BUILTIN_MAPPINGS 2023-12-11 10:21:04 +08:00
075b5b288a Matcher parser errors when empty 2023-12-11 10:20:12 +08:00
7cfd1e0d78 Rerun build script only when necessary 2023-12-11 10:20:12 +08:00
9f7d70f642 Use regex for matcher parsing
- Somewhat better maintainability I think
2023-12-11 10:20:12 +08:00
0fea82cff9 Minor improvement of variable naming accuracy 2023-12-11 10:20:11 +08:00
64840fbbae join_segments -> build_glob_string
- this is a more descriptive name
2023-12-11 10:20:11 +08:00
9478d2dfe8 Isolate variables at compile time 2023-12-11 10:20:11 +08:00
9f4259721a Fix codegen type declaration 2023-12-11 10:20:11 +08:00
77e491161c Ensure lexicographical ordering 2023-12-11 10:20:10 +08:00
97780f987e MappingDefModel::into_mapping_list returns MappingList 2023-12-11 10:20:10 +08:00
d1bc0ef0d4 Build script codegen initial impl 2023-12-11 10:20:10 +08:00