Skip to content

Implement #531: Allow named arguments in call expr macro invocations#533

Merged
GuillaumeGomez merged 3 commits intoaskama-rs:masterfrom
seijikun:mr-callexpr-named
Jul 22, 2025
Merged

Implement #531: Allow named arguments in call expr macro invocations#533
GuillaumeGomez merged 3 commits intoaskama-rs:masterfrom
seijikun:mr-callexpr-named

Conversation

@seijikun
Copy link
Copy Markdown
Contributor

@seijikun seijikun commented Jul 21, 2025

@Kijewski 's pointer in #531 (comment) was priceless. Thank you!
I thought I would have to add support for named arguments to the lexer of Expr first...

Turns out the change is actually quite easy.
Hint: It's probably easier to read commit by commit again

Fixes #531.

@seijikun seijikun force-pushed the mr-callexpr-named branch from 54ca80f to 7fca475 Compare July 21, 2025 22:59
@seijikun
Copy link
Copy Markdown
Contributor Author

seijikun commented Jul 21, 2025

I think the CI failure is not caused by my changes(?)

GuillaumeGomez
GuillaumeGomez previously approved these changes Jul 22, 2025
@GuillaumeGomez
Copy link
Copy Markdown
Collaborator

Changes look good to me, thanks!

And yeah, this CI check fails from time to time.

Comment thread askama_parser/src/expr.rs Outdated
Kijewski
Kijewski previously approved these changes Jul 22, 2025
Copy link
Copy Markdown
Member

@Kijewski Kijewski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! 👍

@Kijewski
Copy link
Copy Markdown
Member

Thank you! And I really like your TDD-style commits!

@seijikun seijikun dismissed stale reviews from Kijewski and GuillaumeGomez via 48d5dba July 22, 2025 10:35
@seijikun seijikun force-pushed the mr-callexpr-named branch from 7fca475 to 48d5dba Compare July 22, 2025 10:35
@seijikun
Copy link
Copy Markdown
Contributor Author

Restored the trailing space

Thank you! And I really like your TDD-style commits!

I'm somewhat torn. On the one hand, its the order I work in - on the other hand, it introduces a commit whose unit-tests fail 😅. But if you like it, I'm happy :)

@GuillaumeGomez GuillaumeGomez merged commit 6ac150e into askama-rs:master Jul 22, 2025
42 checks passed
@Kijewski Kijewski mentioned this pull request Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Named argument syntax in macro call expression

3 participants