Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2023-11-22 | Enhance match to include multiple targets (#911) | PizzasBear | 1 | -0/+29 | |
Signed-off-by: max <gmx.sht@gmail.com> | |||||
2022-11-07 | chore: remove allow(clippy::disallowed_names) | Dirkjan Ochtman | 1 | -2/+0 | |
2022-11-07 | chore: apply clippy suggestions for 1.65 | Dirkjan Ochtman | 1 | -1/+1 | |
2022-01-31 | Allow comments in `{% match %}` and remove panic! | René Kijewski | 1 | -0/+25 | |
2021-08-25 | Add test case for matching on Option<bool> | Restioson | 1 | -0/+18 | |
2021-07-30 | Use "target()" to parse "when" block | René Kijewski | 1 | -0/+24 | |
`target()` as used in parsing "let" and "if let" implements parsing nested tuples and structs. But it does not implement parsing literals. The functions `match_variant()` and `with_parameters()` as used in parsing "when" blocks do not implement parsing nested structs, but it implements parsing literals. This PR combines `match_variant()` and `with_parameters()` into `target()`, so that all `{%when%}` support nested structs, too. | |||||
2021-07-30 | Allow omitting "with" keyword in match blocks | René Kijewski | 1 | -0/+17 | |
Askama uses the syntax `{% when Variant with (parameters) %}` in `{% match %}` blocks. This is done because Askama does not implement the whole pattern matching of Rust's `match` statements. This PR wants to bring Askama a step closer Rust's matching, so the "with" keyword should not be needed anymore. | |||||
2020-12-12 | Fixed whitespace issue when generating match (#399) | Christian Vallentin | 1 | -11/+11 | |
* Fixed #397 * Updated parser to ignore whitespace between match and when * Updated test cases * Updated Python script to generate match ws tests * Added match ws tests * Resolved rustfmt lint | |||||
2020-01-03 | Support char literals | Tuomas Siipola | 1 | -0/+15 | |
2020-01-02 | Clean up clippy warnings | Dirkjan Ochtman | 1 | -0/+2 | |
2018-12-12 | Allow using brackets for enums in `match` | mcarton | 1 | -2/+6 | |
2018-12-08 | Use 2018 edition idioms | Dirkjan Ochtman | 1 | -2/+0 | |
2018-12-08 | Remove unused macro_use attributes | Dirkjan Ochtman | 1 | -1/+0 | |
2018-06-21 | Fix formatting with cargo fmt | Dirkjan Ochtman | 1 | -2/+3 | |
2018-04-12 | Handle a lack of whitespace after match block (fixes #76) | Dirkjan Ochtman | 1 | -0/+12 | |
2017-11-21 | Apply suggestions from rustfmt to improve style | Dirkjan Ochtman | 1 | -1/+1 | |
2017-11-02 | Support matching custom enums | Anthony Nowell | 1 | -0/+19 | |
2017-11-02 | Make match ref/deref as needed | Anthony Nowell | 1 | -0/+27 | |
Much of this can be yanked out and made simpler when match-modes lands in stable | |||||
2017-11-02 | support literals in match arms | Anthony Nowell | 1 | -6/+26 | |
2017-11-02 | implement basic match functionality | Anthony Nowell | 1 | -0/+18 | |