-
-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse error when using macro with expanded module path #836
Comments
Huh, I guess there's some subtlety in the parser relating to the combination of a path, the macro call and the filter. Care to submit a PR? |
Sure, I'll take a jab at it. |
Macro invocations are parsed specially, but they should actually be simply suffix expressions, and be handled like normal function calls: askama/askama_derive/src/parser/expr.rs Lines 256 to 270 in c9613ff
|
I am making a crate that allows people to embed icons from Iconify at compile time, but I ran into a little snag.
Tried on main and 0.12. Only happens when using a macro, normal functions work fine.
The intended usage is:
But it gives me a parse error:
I can work around it by importing the macro (below compiles fine), but I'd prefer being able to keep the module path so I don't need to.
The text was updated successfully, but these errors were encountered: