655 Commits

Author SHA1 Message Date
René Kijewski
cb23b97adf parser: reject non-ASCII characters in byte literals
Resolves <https://issues.oss-fuzz.com/issues/481742850>.
2026-02-05 05:26:32 +01:00
René Kijewski
ed12ef53ee Update filter-signature-validation UI test
* Break overly long lines that are truncated in trybuild [v1.0.105]
* Fix mistakes that are not part of the test, mostly missing return
  values
* Require more current trybuild dev-dependency

[v1.0.105]: <https://redirect.github.com/dtolnay/trybuild/releases/tag/1.0.115>
2026-02-04 20:26:46 +01:00
Guillaume Gomez
f06df54c9c
Merge pull request #685 from Kijewski/pr-compound-assignment
Implement compound assignments (e.g. `{% mut a += 1 %}`)
2026-01-30 10:20:56 +01:00
René Kijewski
579f928a16 Better error messages in expressions 2026-01-30 03:38:45 +01:00
Guillaume Gomez
98c7acd216 Add regression test for temporary refs for #661 2026-01-29 17:13:10 +01:00
René Kijewski
4b0ee18fab Implement compound assignments (e.g. {% mut a += 1 %}) 2026-01-29 00:02:17 +01:00
Guillaume Gomez
2a4fd9f4b4
Merge pull request #686 from GuillaumeGomez/temporary-refs
Correctly handle temporary references
2026-01-28 22:51:53 +01:00
Guillaume Gomez
03a01c2bef Correctly handle temporary references 2026-01-28 22:32:22 +01:00
René Kijewski
d9015816b0 Some function call fixes
* Parsing function calls is expensive. Make sure not to stack overflow.
* We only need to to call `level.nest()` if we descent, but we need to
  call it before we descent.
2026-01-28 17:34:07 +01:00
Guillaume Gomez
827cbf2b3b
Merge pull request #680 from GuillaumeGomez/fix-invalid-variable-parsing
Fix invalid variable parsing
2026-01-28 00:27:39 +01:00
Guillaume Gomez
8ca3545410 Fix ui/truncate.rs and ui/filter-invocation-invalid-arguments.rs stderr 2026-01-28 00:06:45 +01:00
Guillaume Gomez
c37b454aad Fix invalid variable parsing 2026-01-27 23:52:16 +01:00
René Kijewski
cd8fce3391 Update book links (askama.rs) 2026-01-27 21:08:54 +01:00
Guillaume Gomez
3081974111
Merge pull request #670 from GuillaumeGomez/variables-in-extends-blocks
Correctly handle local variables in `extends` blocks
2026-01-27 16:00:20 +01:00
Guillaume Gomez
e50ac414db
Merge pull request #672 from Kijewski/issue-671
derive: allow `where` bounds in `#[filter_fn]`
2026-01-21 10:55:08 +01:00
René Kijewski
1c6b2dac27 derive: allow where bounds in #[filter_fn] 2026-01-21 08:25:31 +01:00
Guillaume Gomez
01ce7e7dd5 Add regression test for local variables used in extends blocks 2026-01-20 17:58:46 +01:00
Guillaume Gomez
23cdc79381 Update duplicated blocks warning message and add warning about not compiling starting next version 2026-01-19 23:13:40 +01:00
Guillaume Gomez
67354d70e6
Merge pull request #666 from GuillaumeGomez/duplicated-block-calls
Fix invalid block call warnings coming from extends
2026-01-18 23:28:00 +01:00
Guillaume Gomez
a119afd7cd Add regression test for duplicated block calls 2026-01-18 23:08:14 +01:00
René Kijewski
60097bafc9 Better spans for #[filter_fn]
This way any offending lines in the function signature or body are
highlighted instead of the `#[filter_fn]` attribute.
2025-12-30 10:14:06 +01:00
Guillaume Gomez
1f32616f02
Merge pull request #653 from GuillaumeGomez/simplify-versioning
Simplify versioning in non-published crates (ie tests and examples)
2025-12-29 16:35:18 +01:00
Guillaume Gomez
e9d35d8abf Only run clippy_lints test if clippy is installed 2025-12-29 16:15:14 +01:00
Guillaume Gomez
e294ae4d5d Simplify versioning in non-published crates (ie tests and examples) 2025-12-29 16:10:59 +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
5aacb32d87 Update askama crates version to 0.15.0 2025-12-22 14:03:57 +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
dependabot[bot]
8308d94248
build(deps): update criterion requirement from 0.7 to 0.8
Updates the requirements on [criterion](https://github.com/criterion-rs/criterion.rs) to permit the latest version.
- [Release notes](https://github.com/criterion-rs/criterion.rs/releases)
- [Changelog](https://github.com/criterion-rs/criterion.rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/criterion-rs/criterion.rs/compare/criterion-plot-v0.7.0...criterion-v0.8.0)

---
updated-dependencies:
- dependency-name: criterion
  dependency-version: 0.8.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-01 21:53:02 +00: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