djc / askama

Type-safe, compiled Jinja-like templates for Rust
Apache License 2.0
3.25k stars 213 forks source link

Deny all / more reserved keywords as macro names #1048

Open Kijewski opened 2 months ago

Kijewski commented 2 months ago

Follow up to this comment: https://github.com/djc/askama/pull/1044#discussion_r1602289767

Currently, only the name super is reserved.

I don't know if other names like self would cause an error during the compilation, or if they would still work, e.g. because they get mangled as r#self, or if the name does not actually wind up in the code.