Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Enhance match to include multiple targets (#911) | PizzasBear | 2023-11-22 | 1 | -0/+29 |
| | | | Signed-off-by: max <gmx.sht@gmail.com> | ||||
* | chore: remove allow(clippy::disallowed_names) | Dirkjan Ochtman | 2022-11-07 | 1 | -2/+0 |
| | |||||
* | chore: apply clippy suggestions for 1.65 | Dirkjan Ochtman | 2022-11-07 | 1 | -1/+1 |
| | |||||
* | Allow comments in `{% match %}` and remove panic! | René Kijewski | 2022-01-31 | 1 | -0/+25 |
| | |||||
* | Add test case for matching on Option<bool> | Restioson | 2021-08-25 | 1 | -0/+18 |
| | |||||
* | Use "target()" to parse "when" block | René Kijewski | 2021-07-30 | 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. | ||||
* | Allow omitting "with" keyword in match blocks | René Kijewski | 2021-07-30 | 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. | ||||
* | Fixed whitespace issue when generating match (#399) | Christian Vallentin | 2020-12-12 | 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 | ||||
* | Support char literals | Tuomas Siipola | 2020-01-03 | 1 | -0/+15 |
| | |||||
* | Clean up clippy warnings | Dirkjan Ochtman | 2020-01-02 | 1 | -0/+2 |
| | |||||
* | Allow using brackets for enums in `match` | mcarton | 2018-12-12 | 1 | -2/+6 |
| | |||||
* | Use 2018 edition idioms | Dirkjan Ochtman | 2018-12-08 | 1 | -2/+0 |
| | |||||
* | Remove unused macro_use attributes | Dirkjan Ochtman | 2018-12-08 | 1 | -1/+0 |
| | |||||
* | Fix formatting with cargo fmt | Dirkjan Ochtman | 2018-06-21 | 1 | -2/+3 |
| | |||||
* | Handle a lack of whitespace after match block (fixes #76) | Dirkjan Ochtman | 2018-04-12 | 1 | -0/+12 |
| | |||||
* | Apply suggestions from rustfmt to improve style | Dirkjan Ochtman | 2017-11-21 | 1 | -1/+1 |
| | |||||
* | Support matching custom enums | Anthony Nowell | 2017-11-02 | 1 | -0/+19 |
| | |||||
* | Make match ref/deref as needed | Anthony Nowell | 2017-11-02 | 1 | -0/+27 |
| | | | | | Much of this can be yanked out and made simpler when match-modes lands in stable | ||||
* | support literals in match arms | Anthony Nowell | 2017-11-02 | 1 | -6/+26 |
| | |||||
* | implement basic match functionality | Anthony Nowell | 2017-11-02 | 1 | -0/+18 |