Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Allow paths to start with `::` (#393) | Christian Vallentin | 2020-12-02 | 1 | -4/+25 |
| | |||||
* | Fixed parsing precedence and associativity (#391) | Christian Vallentin | 2020-12-01 | 1 | -33/+173 |
| | |||||
* | Improve error handling (see #368) | Dirkjan Ochtman | 2020-11-02 | 1 | -13/+17 |
| | |||||
* | Apply clippy suggestions | Dirkjan Ochtman | 2020-11-02 | 1 | -2/+2 |
| | |||||
* | Upgrade to nom 6 | Dirkjan Ochtman | 2020-11-02 | 1 | -36/+37 |
| | |||||
* | Add support for more whitespace positions within expressions: | Ciprian Dorin Craciun | 2020-06-30 | 1 | -11/+20 |
| | | | | | | | | | | | | * in function calls: `x ( 1 , 2 )`; * in path elements: `module :: element`; * in attributes: `x . y . z`; * in filter arguments: `x| filter ( 1 , 2 )`; * before unary operators: `! false` and `- 42`; * in grouped expressions: `( 1 + 2 )`; * also allow more than a single whitespace; Change some tests to include whitespaces in various positions. | ||||
* | Reorder parser type definitions | Dirkjan Ochtman | 2020-06-03 | 1 | -46/+46 |
| | |||||
* | Revert whitespace matching to old macro behavior | Dirkjan Ochtman | 2020-06-03 | 1 | -6/+8 |
| | |||||
* | Strip 0 or more instead of 1 whitespace character (fixes #337) | Dirkjan Ochtman | 2020-06-03 | 1 | -2/+2 |
| | |||||
* | Cast empty arrays to slice to get around clippy | Dirkjan Ochtman | 2020-05-21 | 1 | -3/+2 |
| | |||||
* | Allow clippy reversed-empty-ranges for now | Dirkjan Ochtman | 2020-05-21 | 1 | -0/+1 |
| | | | | Pending https://github.com/rust-lang/rust-clippy/issues/5628. | ||||
* | Support function calls | Nathan Lapel | 2020-03-18 | 1 | -9/+57 |
| | |||||
* | Move parser into askama_shared | Dirkjan Ochtman | 2020-01-29 | 1 | -0/+1093 |
| | |||||
* | Isolate proc-macro dependency to the proc macro | David Tolnay | 2018-04-12 | 1 | -694/+0 |
| | | | | | | | | | The dependency of askama on askama_shared on syn on libproc_macro used to mean libproc_macro would be dynamically linked into any crate using askama. We want only askama_derive to have a runtime dependency on proc macro. This commit moves all proc macro code from askama_shared into askama_derive so that the askama crate no longer dynamically links libproc_macro. | ||||
* | Handle a lack of whitespace after match block (fixes #76) | Dirkjan Ochtman | 2018-04-12 | 1 | -4/+5 |
| | |||||
* | Properly disable rustfmt in parser module | Dirkjan Ochtman | 2017-12-25 | 1 | -2/+1 |
| | |||||
* | Disabling rustfmt locally doesn't work in stable Rust | Dirkjan Ochtman | 2017-11-21 | 1 | -2/+2 |
| | |||||
* | Don't restyle code in parser module | Dirkjan Ochtman | 2017-11-21 | 1 | -0/+4 |
| | |||||
* | Support matching custom enums | Anthony Nowell | 2017-11-02 | 1 | -2/+44 |
| | |||||
* | support literals in match arms | Anthony Nowell | 2017-11-02 | 1 | -7/+47 |
| | |||||
* | support else in match block | Anthony Nowell | 2017-11-02 | 1 | -0/+15 |
| | |||||
* | implement basic match functionality | Anthony Nowell | 2017-11-02 | 1 | -0/+54 |
| | |||||
* | Make empty string literals work | Dirkjan Ochtman | 2017-10-22 | 1 | -1/+1 |
| | |||||
* | Tighten up parser code for path expressions | Dirkjan Ochtman | 2017-10-20 | 1 | -4/+2 |
| | |||||
* | Add support for array literals (fixes #59) | Dirkjan Ochtman | 2017-10-20 | 1 | -0/+18 |
| | |||||
* | Add scope when importing macros | Lars Erik Rosengren | 2017-10-15 | 1 | -4/+11 |
| | |||||
* | Handle path expressions (fixes #56) | Dirkjan Ochtman | 2017-10-04 | 1 | -0/+18 |
| | |||||
* | Add support for importing template files with macros (#51) | larros | 2017-09-26 | 1 | -0/+13 |
| | | | | * Fix review comments for macro imports | ||||
* | Add support for tuple indexing in templates | Lars Erik Rosengren | 2017-09-10 | 1 | -3/+7 |
| | |||||
* | Code cleanups as suggested by Clippy | Dirkjan Ochtman | 2017-09-06 | 1 | -4/+4 |
| | |||||
* | Stop mutating parsed AST for code generation | Dirkjan Ochtman | 2017-09-05 | 1 | -1/+0 |
| | |||||
* | Refactor handling of macros | Dirkjan Ochtman | 2017-09-05 | 1 | -5/+15 |
| | |||||
* | Clean up and tighten faster version of expr_prec_layer macro | Dirkjan Ochtman | 2017-09-04 | 1 | -15/+10 |
| | |||||
* | Changed implementation of precedence rules | Lars Erik Rosengren | 2017-09-03 | 1 | -6/+12 |
| | | | | | | | | | | | | | | This implementation resolves djc/askama#44 by changing the precedence implementation. The previous solution was very slow because it had to try to parse all combinations of precedence layers leading to 2^9 iterations for each expr_any. This is solved by reusing the left operand instead of reparsing it when the operator isn't found. This implementation also solves another related issue that expressions with multiple operators couldn't be parsed, for example {{1 * 2 * 3}}. This is handled by using expr_any for the right operand instead of only using higher level precedence layers. | ||||
* | Move most of the code into new askama_shared crate | Dirkjan Ochtman | 2017-08-27 | 1 | -0/+471 |
This makes it possible to share code between askama and askama_derive. |