542 Commits

Author SHA1 Message Date
Guillaume Gomez
e9d35d8abf Only run clippy_lints test if clippy is installed 2025-12-29 16:15:14 +01:00
Guillaume Gomez
aed4d6fc96 Add tests for clippy lints emitted in askama generated code 2025-12-29 16:07:51 +01:00
Guillaume Gomez
cfc0883ff2 Update tests for lifetimes in filters 2025-12-28 18:09:28 +01:00
Guillaume Gomez
eb94dec464 Add regression test for filters arguments mutability 2025-12-25 16:56:58 +01:00
Guillaume Gomez
87429c892f Fix custom_ui test on nightly 2025-12-20 23:56:28 +01:00
Guillaume Gomez
243164ccd0 Fix method call on enum variant templates 2025-12-20 01:18:58 +01:00
Guillaume Gomez
683f4a2e52 Add new decl tag 2025-12-13 21:31:28 +01:00
Guillaume Gomez
9211c599f9 Update ui tests output for rust 1.92 2025-12-13 18:04:06 +01:00
Markus Ebner
633de66a65
feat: Add support for array repeat syntax: [<element_expr>; <cnt_expr>] 2025-11-25 14:35:31 +01:00
Markus Ebner
6bb01e8520
filter_fn: Further improve invalid invocation compile error messages
This round fixes compile error messages for when not all required arguments have been supplied.
2025-11-06 18:55:28 +01:00
Frédérik Bilhaut
69936c2c56 cargo fmt 2025-11-05 14:09:08 +01:00
Frédérik Bilhaut
b7c5578c00 fix nested includes not handled properly (#618) 2025-11-05 14:07:44 +01:00
Guillaume Gomez
8038a8f92a Fix nightly output 2025-11-03 15:41:13 +01:00
Guillaume Gomez
cec1f04cee Fix fuzzing ui test 2025-11-03 15:39:55 +01:00
René Kijewski
fc96cda272
We need syn/full 2025-10-29 16:13:40 +01:00
Markus Ebner
1055ae0abd
Improve compiler errors for invocations with too many arguments 2025-10-29 16:13:36 +01:00
Markus Ebner
ab28d38460
Add ui-test for filter_fn signature validation 2025-10-29 15:45:24 +01:00
Markus Ebner
c292504276
Add unit-test checking filter_fn parsing/codegen 2025-10-29 15:45:24 +01:00
Markus Ebner
38b2c3f536
Port askama to new filter_fn proc-macro-attr 2025-10-29 15:45:24 +01:00
Guillaume Gomez
d220cd5113
Merge pull request #602 from VojtaStanek/struct-expr
Add support for struct expressions
2025-10-19 16:33:39 +02:00
Guillaume Gomez
04cf06beb4 Limit maximum number of references in generics to prevent syn stack overflow 2025-10-18 22:04:50 +02:00
Guillaume Gomez
334519e7cd Greatly improve errors of invalid struct expression 2025-10-05 11:11:33 +02:00
Guillaume Gomez
5e5d57628a Improve parsing errors and ui tests 2025-10-03 00:39:06 +02:00
Guillaume Gomez
0c229240e1 Fix typo 2025-09-30 22:13:21 +02:00
Vojta Staněk
ed28a2a6b8
Add support for struct expressions - ui tests 2025-09-28 10:06:30 +02:00
Vojta Staněk
0d98ce33ec
Add support for struct expressions 2025-09-27 17:56:07 +02:00
Guillaume Gomez
2a347c7f08 Update tests with new number output 2025-09-27 03:30:50 +02:00
Guillaume Gomez
04e9241e4f Remove unwanted print = "ast" forgotten in tests 2025-09-02 15:30:53 +02:00
Guillaume Gomez
129c3549d4 Add custom ui regression test for duplicated blocks calls 2025-09-02 15:08:59 +02:00
Guillaume Gomez
a577f60d33 Add new custom_ui test suite to allow checking askama warning messages 2025-09-02 15:08:59 +02:00
Guillaume Gomez
034f1676b5 Fix invalid "duplicated block call" warning 2025-09-02 15:08:59 +02:00
René Kijewski
52c4dfd8c3 parser: reject extends below top-level, too 2025-08-25 01:24:25 +02:00
Guillaume Gomez
b744cab2be Emit an error if an extends block doesn't come first in a template 2025-08-24 22:26:17 +02:00
René Kijewski
4025323c8d tests: fix expected output for nightly 2025-08-17 2025-08-19 22:22:46 +02:00
René Kijewski
8c02e48cdb Implement feature "nightly-spans" 2025-08-19 17:41:20 +02:00
René Kijewski
a0d99ba6fc Better spans 2025-08-19 17:41:20 +02:00
René Kijewski
e5189b933d Use Parser::[with_]span() to generate proc_macro::Span 2025-08-19 17:41:20 +02:00
Guillaume Gomez
1f31021632 Fix wrong macro argument parsing 2025-08-17 16:28:45 +02:00
Guillaume Gomez
e8d2391d48 Allow to ignore jinja code example check 2025-08-17 14:59:12 +02:00
Guillaume Gomez
edcaa61fb6 Add new test to check syntax of book examples 2025-08-17 14:59:12 +02:00
Markus Ebner
59a982028e Fix #563: filesizeformat with proper accuracy 2025-08-13 12:26:25 +02:00
Guillaume Gomez
e8572f4580 Fix invalid handling of paths starting with :: 2025-08-13 11:20:49 +02:00
Guillaume Gomez
885e0f7de1 Fix wrong span context for askama variables 2025-08-12 14:54:51 +02:00
René Kijewski
1014b975cd Fix new clippy warnings 2025-08-07 20:55:28 +02:00
René Kijewski
98ad5d5b3f parser: better messages for (group) 2025-08-07 20:48:15 +02:00
René Kijewski
c0d6f0f0fc parser: a little better spans 2025-08-07 20:39:38 +02:00
René Kijewski
329771152d parser: use LocatingSlice<&str> instead of &str
This will enable better span getting in subsequent PRs.
2025-08-07 18:41:51 +02:00
René Kijewski
693f86d1c4 derive: don't use format_args! for code formatting
* No need to manually escape raw identifiers
* Allow a few warnings
2025-08-06 19:11:26 +02:00
Guillaume Gomez
80a4af7f2d Generate a TokenStream rather than a String 2025-08-06 19:11:26 +02:00
René Kijewski
1f3c926c58 parser: r#self is not a valid raw identifier in macro calls
It's not a valid raw identifier anywhere, actually, but the other cases
(in a path, as a field name, as a macro name) were already handled.

Resolves <https://issues.oss-fuzz.com/issues/435218013>.
2025-07-31 18:46:35 +02:00