Skip to content
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

Better error message for {% macro super %} #1044

Merged
merged 3 commits into from
May 16, 2024
Merged

Better error message for {% macro super %} #1044

merged 3 commits into from
May 16, 2024

Conversation

Kijewski
Copy link
Contributor

No description provided.

@Kijewski Kijewski marked this pull request as ready for review May 15, 2024 21:45
@@ -520,7 +520,13 @@ impl<'a> Macro<'a> {
|i| s.tag_block_end(i),
))),
));
let (i, (pws1, _, (name, params, nws1, _))) = start(i)?;
let (j, (pws1, _, (name, params, nws1, _))) = start(i)?;
if name == "super" {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess all reserved keywords should be restricted? What do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think that'd be better indeed.

@Kijewski Kijewski merged commit 2b4f264 into djc:main May 16, 2024
17 checks passed
@Kijewski Kijewski deleted the pr-super branch May 16, 2024 11:53
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.

3 participants