aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/parser.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* derive: Make Config `'static`Libravatar René Kijewski2023-01-301-18/+15
| | | | | | | The configuration is made `'static`, because `toml` and `toml_edit` both needs to implement serde's `DeserializeOwned` by now. We allocate the strings once per template, so it is very unlikely that this change will have any measurable impact, neither in compile time nor RAM usage.
* Apply clippy suggestions for 1.67 (#769)Libravatar Dirkjan Ochtman2023-01-301-2/+2
|
* Fail to parse if keyword is not longest identLibravatar René Kijewski2022-11-091-31/+56
| | | | | | | | | | | This PR makes e.g. `{% leta = b %}` a parsing error. To the reader it would appear that `leta` should be a meaningful expression in Askama, which it is not. Before this PR, `leta` was tokenized as `let` + `a`. This PR makes the parser try to find the longest identifier at a parsing positions and only compare the outcome against the expected keyword. This is potentially a breaking change, because code that should always have been invalid will now fail to compile, when it was accepted before.
* Add Expr::is_cachable()Libravatar René Kijewski2022-09-191-0/+33
|
* Move code generation into askama_deriveLibravatar René Kijewski2022-05-241-0/+1885
|
* Move parser into askama_sharedLibravatar Dirkjan Ochtman2020-01-291-1093/+0
|
* Support escaping in string literalsLibravatar Tuomas Siipola2020-01-121-20/+30
| | | | | | Do not attempt to parse escape sequences thoroughly. Instead let the Rust compiler to check the string literals and provide nice error messages if necessary.
* Support char literalsLibravatar Tuomas Siipola2020-01-031-2/+30
|
* Clean up clippy warningsLibravatar Dirkjan Ochtman2020-01-021-16/+13
|
* Migrate to non-macro combinatorsLibravatar Dirkjan Ochtman2019-11-111-541/+709
|
* Upgrade to nom 5Libravatar Dirkjan Ochtman2019-11-111-94/+90
|
* Remove use of deprecated nom macroLibravatar Dirkjan Ochtman2019-10-091-1/+1
|
* Add support for boolean literalsLibravatar Dave Poulter2019-10-081-0/+7
|
* Implement selected clippy recommendations.Libravatar Bardi Harborow2019-07-111-1/+1
|
* Simplify parser with nom's list combinatorsLibravatar James Gilles2019-05-041-121/+44
|
* WIP: Add raw blockLibravatar Pavel Fokin2019-04-181-1/+22
|
* Allow Rust macro calls in more places (see #226)Libravatar Dirkjan Ochtman2019-03-181-2/+2
|
* Allow trailing commas in tuples (#188)Libravatar yossyJ2019-01-081-0/+1
|
* Add support for #![feature(non_ascii_idents)]Libravatar yossyJ2019-01-081-2/+7
|
* Add support for tupleLibravatar yossyJ2019-01-041-2/+22
|
* fix rust macro argumentsLibravatar Juan Aguilar Santillana2018-12-131-6/+57
|
* Allow using brackets for enums in `match`Libravatar mcarton2018-12-121-4/+50
|
* Use 2018 edition idiomsLibravatar Dirkjan Ochtman2018-12-081-2/+2
|
* Upgrade to 2018 editionLibravatar Dirkjan Ochtman2018-12-081-3/+3
|
* Add Rust macro support at templatesLibravatar bott2018-10-071-1/+12
|
* Fix deprecated tag s! in favor of tag!Libravatar bott2018-10-051-83/+83
|
* Fix fmt at parser.rsLibravatar bott2018-10-051-28/+42
|
* Add changing delimiters supportLibravatar bott2018-10-051-68/+106
|
* Clean up according to clippy suggestionsLibravatar Dirkjan Ochtman2018-07-021-1/+1
|
* Add support for range operators (see #95)Libravatar Dirkjan Ochtman2018-06-231-1/+21
|
* Add support for Index operation (see #95)Libravatar Dirkjan Ochtman2018-06-231-1/+16
|
* Disallow user-defined macros named 'super'Libravatar Dirkjan Ochtman2018-06-221-9/+14
|
* Clean up clippy suggestionsLibravatar Dirkjan Ochtman2018-06-211-1/+1
|
* Port parser to nom 4Libravatar Dirkjan Ochtman2018-06-151-67/+79
|
* Fix copy/paste error in whitespace handlingLibravatar Dirkjan Ochtman2018-05-141-2/+2
|
* Add support for unary operators (fixes #83)Libravatar Dirkjan Ochtman2018-04-271-1/+11
|
* Properly handle whitespace around comments (fixes #79)Libravatar Dirkjan Ochtman2018-04-171-3/+4
|
* Isolate proc-macro dependency to the proc macroLibravatar David Tolnay2018-04-121-0/+694
| | | | | | | | | 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.
* Move most of the code into new askama_shared crateLibravatar Dirkjan Ochtman2017-08-271-471/+0
| | | | This makes it possible to share code between askama and askama_derive.
* Allow {% block name %} {% endblock name %}Libravatar Bastien Orivel2017-08-241-0/+1
| | | | This makes converting an app from tera to askama easier.
* Add support for calling macrosLibravatar Dirkjan Ochtman2017-08-221-13/+24
|
* Refactor parser handling of argumentsLibravatar Dirkjan Ochtman2017-08-221-21/+19
|
* Implement support for macro definition handlingLibravatar Dirkjan Ochtman2017-08-221-1/+43
|
* Rename method call internals for clarityLibravatar Dirkjan Ochtman2017-08-221-2/+2
|
* Allow separation of variable declaration and defintionLibravatar Dirkjan Ochtman2017-08-161-3/+11
|
* Add support for simple variable definition statementsLibravatar Dirkjan Ochtman2017-08-141-0/+12
|
* Expand include node to template source during code generationLibravatar Dirkjan Ochtman2017-08-061-4/+2
|
* Use one way of finding templates on the pathLibravatar Dirkjan Ochtman2017-08-061-1/+2
|
* Merge handling of trailing newline into get_template_source()Libravatar Dirkjan Ochtman2017-08-061-10/+4
|
* Add test for panic on invalid blocks (see #27)Libravatar Dirkjan Ochtman2017-08-041-0/+5
|