aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/matches.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-07-30Allow omitting "with" keyword in match blocksLibravatar René Kijewski1-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-12Fixed whitespace issue when generating match (#399)Libravatar Christian Vallentin1-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-03Support char literalsLibravatar Tuomas Siipola1-0/+15
2020-01-02Clean up clippy warningsLibravatar Dirkjan Ochtman1-0/+2
2018-12-12Allow using brackets for enums in `match`Libravatar mcarton1-2/+6
2018-12-08Use 2018 edition idiomsLibravatar Dirkjan Ochtman1-2/+0
2018-12-08Remove unused macro_use attributesLibravatar Dirkjan Ochtman1-1/+0
2018-06-21Fix formatting with cargo fmtLibravatar Dirkjan Ochtman1-2/+3
2018-04-12Handle a lack of whitespace after match block (fixes #76)Libravatar Dirkjan Ochtman1-0/+12
2017-11-21Apply suggestions from rustfmt to improve styleLibravatar Dirkjan Ochtman1-1/+1
2017-11-02Support matching custom enumsLibravatar Anthony Nowell1-0/+19
2017-11-02Make match ref/deref as neededLibravatar Anthony Nowell1-0/+27
Much of this can be yanked out and made simpler when match-modes lands in stable
2017-11-02support literals in match armsLibravatar Anthony Nowell1-6/+26
2017-11-02implement basic match functionalityLibravatar Anthony Nowell1-0/+18