aboutsummaryrefslogtreecommitdiffstats
path: root/askama_parser/src/tests.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use char_indices() to get byte indices for charactersLibravatar Dirkjan Ochtman2023-09-111-0/+7
|
* parser: better error message for unknown nodesLibravatar René Kijewski2023-08-021-1/+1
|
* parser: import `parser::{Expr, Node}`Libravatar René Kijewski2023-08-011-3/+2
|
* parser: add type for `Node::Comment`Libravatar René Kijewski2023-08-011-103/+52
|
* parser: remove re-exports `parser::{node,expr}::*`Libravatar René Kijewski2023-08-011-2/+4
|
* parser: add type for `Node::Lit`Libravatar René Kijewski2023-08-011-11/+5
|
* Fix parsing arraysLibravatar René Kijewski2023-07-311-0/+83
| | | | | | | | | | | | | | | | 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-311-1/+26
| | | | | | | This change: * adds a cut when the leading `(` was encountered, and * fixed the interaction between call expressions and boolean OR.
* parser: add top-level Ast typeLibravatar Dirkjan Ochtman2023-07-311-82/+108
|
* Extract askama_parser crateLibravatar Dirkjan Ochtman2023-07-311-0/+712