aboutsummaryrefslogtreecommitdiffstats
path: root/askama_parser/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Yield error on deep AST recursionLibravatar Dirkjan Ochtman2024-01-182-3/+15
|
* Improve performance of `find_used_templates`Libravatar max2024-01-171-1/+2
| | | | Signed-off-by: max <gmx.sht@gmail.com>
* parser: add test for target recursion overflowLibravatar Dirkjan Ochtman2024-01-111-0/+6
|
* parser: limit target recursionLibravatar Dirkjan Ochtman2024-01-111-14/+25
|
* Allow trailing comma in macro definition and callLibravatar Guillaume Gomez2023-12-072-2/+2
|
* Undo an accidental deletion of `#[derive(Debug)]`Libravatar max2023-12-071-0/+1
| | | | Signed-off-by: max <gmx.sht@gmail.com>
* Added testing for reserved variable namesLibravatar max2023-12-072-5/+20
| | | | Signed-off-by: max <gmx.sht@gmail.com>
* Allow to pass named arguments to macro callsLibravatar Guillaume Gomez2023-11-282-6/+75
|
* Add better support for rust-like number literals (#908)Libravatar PizzasBear2023-11-221-5/+65
| | | Signed-off-by: max <gmx.sht@gmail.com>
* Enhance match to include multiple targets (#911)Libravatar PizzasBear2023-11-221-0/+13
| | | Signed-off-by: max <gmx.sht@gmail.com>
* Derive Clone for Expr and TargetLibravatar Andrew Dona-Couch2023-11-132-2/+2
|
* Create a type alias for all `IResult` to simplify code readingLibravatar Guillaume Gomez2023-10-253-108/+90
|
* Improve error for `elif` keywordLibravatar Guillaume Gomez2023-10-251-1/+9
|
* Improve error for invalid name used in `endmacro`Libravatar Guillaume Gomez2023-10-251-1/+7
|
* Improve error for invalid name used in `endblock`Libravatar Guillaume Gomez2023-10-252-2/+30
|
* Create `ErrorContext` typeLibravatar Guillaume Gomez2023-10-253-95/+183
|
* Pass `Node` parsing level to expressionsLibravatar René Kijewski2023-09-282-16/+16
|
* Limit nesting in parser nodes, tooLibravatar René Kijewski2023-09-282-4/+23
|
* Require Expr::parse() callers to supply LevelLibravatar Dirkjan Ochtman2023-09-282-16/+18
|
* Move Level into the crate rootLibravatar Dirkjan Ochtman2023-09-283-18/+17
|
* Yield a parser error when defining a macro named 'super'Libravatar Dirkjan Ochtman2023-09-282-4/+11
|
* Limit expression nesting level to avoid stack overflowsLibravatar Dirkjan Ochtman2023-09-282-34/+83
|
* Use char_indices() to get byte indices for charactersLibravatar Dirkjan Ochtman2023-09-112-1/+8
|
* Rename some variablesLibravatar Dirkjan Ochtman2023-09-111-7/+7
|
* Optimize parsing boolean literals, tooLibravatar René Kijewski2023-08-031-9/+5
|
* Parse paths and identifiers only onceLibravatar René Kijewski2023-08-033-37/+53
| | | | | | | | | | | | | | In the old implementation each variable in an expression would be parsed up to three times: * Try to parse a path because it contains a leading double colon, or infix double colons. * Try to parse it as path again by scanning for an identifier that contains an upper case character. * Fall back to scanning for any identifier. This PR turns all three steps into one, without the need for backtracking.
* parser: fix white space issues in macro parsingLibravatar René Kijewski2023-08-021-2/+2
|
* parser: allow negative numbers in patternsLibravatar René Kijewski2023-08-021-1/+5
|
* parser: don't truncates whitespaces after arraysLibravatar René Kijewski2023-08-021-1/+1
|
* parser: better error message for unknown nodesLibravatar René Kijewski2023-08-022-9/+8
|
* parser: import `parser::{Expr, Node}`Libravatar René Kijewski2023-08-012-5/+4
|
* parser: `node::Loop` is much bigger than the other variantsLibravatar René Kijewski2023-08-011-2/+2
|
* parser: move test for completenessLibravatar René Kijewski2023-08-011-6/+6
|
* parser: add type for `Node::Comment`Libravatar René Kijewski2023-08-012-146/+109
|
* parser: add `expr::Loop::parse()`Libravatar René Kijewski2023-08-011-68/+70
|
* parser: remove re-exports `parser::{node,expr}::*`Libravatar René Kijewski2023-08-013-13/+12
|
* parser: add type for `Node::Extends`Libravatar René Kijewski2023-08-012-9/+16
|
* parser: add type for `Node::Include`Libravatar René Kijewski2023-08-012-14/+28
|
* parser: rename `Node::Cond` into `If` and add typeLibravatar René Kijewski2023-08-012-35/+49
|
* parser: add type for `Node::Let`Libravatar René Kijewski2023-08-012-26/+34
|
* parser: add type for `Node::Raw`Libravatar René Kijewski2023-08-012-29/+38
|
* parser: add type for `Node::Lit`Libravatar René Kijewski2023-08-013-49/+54
|
* parser: add type for `Node::BlockDef`Libravatar René Kijewski2023-08-012-30/+45
|
* parser: add type for `Node::Match`Libravatar René Kijewski2023-08-012-36/+54
|
* parser: add type for `Node::Call`Libravatar René Kijewski2023-08-012-20/+40
|
* parser: add type for `Node::Import`Libravatar René Kijewski2023-08-012-17/+33
|
* parser: let `Macro` know its nameLibravatar René Kijewski2023-08-011-52/+53
|
* parser: add `Ast::nodes()` methodLibravatar René Kijewski2023-08-011-0/+4
|
* parser: impement `PartialEq` for `Ast`Libravatar René Kijewski2023-08-011-0/+7
|
* parser: implement `Debug` for `Parsed`Libravatar René Kijewski2023-08-011-1/+9
|