Commit Graph

25 Commits (eca6b8a3768ec3931a41330c42b138107b1786b5)

Author SHA1 Message Date
cyqsimon 75cdabaf13
Relax syntax mapping rule restrictions to allow brace expansion 8 months ago
David Tolnay 1a54c9bf6d
Eliminate dependency on serde's "derive" feature 8 months ago
cyqsimon 9f36a7a284
Minor codestyle improvements 9 months ago
cyqsimon daf33709a0
Additional sanity check for matcher parser 10 months ago
cyqsimon 12fa2cb1eb
`-` is not a legal character in variable name 10 months ago
cyqsimon 0c1b80faab
Impl per-target syntax mappings 10 months ago
cyqsimon 2c9bf229e1
Add doc comment for `BUILTIN_MAPPINGS` 10 months ago
cyqsimon 822e81bb24
Suppress clippy warning for `MappingTarget` in build script 10 months ago
cyqsimon 4ad3002543
`s/Lazy<GlobMatcher>/Lazy<Option<GlobMatcher>>/` 10 months ago
cyqsimon 1c7c9a6b6d
Split `syntax_mapping/builtin.rs` 10 months ago
cyqsimon 0c93ca80f4
Guard against duplicate matchers in build script 10 months ago
cyqsimon de6d418d42
Remove `BuiltinMatcher` enum
Explanation added as comments in code
Using plain `Lazy<Option<GlobMatcher>>` is just better
10 months ago
cyqsimon c016b462c0
`STATIC_RULES` => `BUILTIN_MAPPINGS` 10 months ago
cyqsimon 075b5b288a
Matcher parser errors when empty 10 months ago
cyqsimon 7cfd1e0d78
Rerun build script only when necessary 10 months ago
cyqsimon 9f7d70f642
Use regex for matcher parsing
- Somewhat better maintainability I think
10 months ago
cyqsimon 0fea82cff9
Minor improvement of variable naming accuracy 10 months ago
cyqsimon 64840fbbae
`join_segments` -> `build_glob_string`
- this is a more descriptive name
10 months ago
cyqsimon 9478d2dfe8
Isolate variables at compile time 10 months ago
cyqsimon 9f4259721a
Fix codegen type declaration 10 months ago
cyqsimon 77e491161c
Ensure lexicographical ordering 10 months ago
cyqsimon 97780f987e
`MappingDefModel::into_mapping_list` returns `MappingList` 10 months ago
cyqsimon d1bc0ef0d4
Build script codegen initial impl 10 months ago
cyqsimon 5498c24c33 Rerun build script only when necessary 12 months ago
cyqsimon 79a03b4299 Reorganise build script into modules 12 months ago