aboutsummaryrefslogtreecommitdiffstats
path: root/askama_parser/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix parsing arraysLibravatar René Kijewski2023-07-312-5/+90
| | | | | | | | | | | | | | | | This change * allows using empty arrays `[]` in expessions, * adds a cut when the leading `[` was encountered, and * fixes the interaction between arrays and boolean OR. IMO the restriction that you couldn't use empty arrays is not needed. The missing cut made error messages slictly worse if you forget to add the closing `]`. Filter expressions must not have white spaces before the pipe `|`. The white space is used to tell a filter expressions, and `std::ops::Or` apart.
* Fix parsing callsLibravatar René Kijewski2023-07-312-4/+31
| | | | | | | This change: * adds a cut when the leading `(` was encountered, and * fixed the interaction between call expressions and boolean OR.
* parser: rename block to nodesLibravatar Dirkjan Ochtman2023-07-311-12/+13
|
* parser: reorder items in node moduleLibravatar Dirkjan Ochtman2023-07-311-50/+50
|
* parser: move Expr parser helpers into callersLibravatar Dirkjan Ochtman2023-07-311-53/+54
|
* parser: move single expr parsers into Expr implLibravatar Dirkjan Ochtman2023-07-311-63/+63
|
* parser: move binary operator parsers into Expr implLibravatar Dirkjan Ochtman2023-07-311-71/+71
|
* parser: flatten top-level Expr interfaceLibravatar Dirkjan Ochtman2023-07-312-36/+28
|
* parser: move suffix parsers into impl blockLibravatar Dirkjan Ochtman2023-07-311-53/+61
|
* parser: move cond parsers into type implsLibravatar Dirkjan Ochtman2023-07-311-39/+43
|
* parser: move parser helpers into callersLibravatar Dirkjan Ochtman2023-07-311-35/+35
|
* parser: move when parsers into impl blockLibravatar Dirkjan Ochtman2023-07-311-47/+50
|
* parser: define a struct for MatchLibravatar Dirkjan Ochtman2023-07-311-3/+22
|
* parser: define a struct for CondLibravatar Dirkjan Ochtman2023-07-311-3/+19
|
* parser: move node parsers into impl blockLibravatar Dirkjan Ochtman2023-07-312-410/+406
|
* parser: move Whitespace parser into methodLibravatar Dirkjan Ochtman2023-07-311-144/+142
|
* parser: move impl blocks closer to type definitionsLibravatar Dirkjan Ochtman2023-07-311-12/+12
|
* parser: simplify top-level parser matchLibravatar Dirkjan Ochtman2023-07-311-29/+24
|
* parser: add top-level Ast typeLibravatar Dirkjan Ochtman2023-07-312-115/+148
|
* parser: move nested_parenthesis() helper into node moduleLibravatar Dirkjan Ochtman2023-07-312-51/+49
|
* parser: move helper functions into State implLibravatar Dirkjan Ochtman2023-07-312-93/+92
|
* parser: move trait impl closer to type definitionLibravatar Dirkjan Ochtman2023-07-312-11/+11
|
* parser: move single-use functions into callerLibravatar Dirkjan Ochtman2023-07-311-13/+13
|
* Extract askama_parser crateLibravatar Dirkjan Ochtman2023-07-314-0/+2055