Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
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 | |