-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Don't require semicolon after macro definition #220
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
Comments
This looks like a nice starter issue. I would like to see if I can fix it today. |
Feel free to ask for help here if you get stuck 😉 |
I think I jumped the gun a bit early here. Holiday is coming up next week and I want to finish up a compilers course (this one) so that I start with proper understanding of the basics. I do want to get involved, it may just take a few more weeks =) If someone else wants to pick this up, feel free! |
It turns out this is not only a problem for macro definitions, but also macro usage. I have created #225 which is more general. |
But surely macro definition and usages are different constructs entirely. I would argue that this is should be simpler to fix than #225. It might only require a change to https://github.com/rust-analyzer/rust-analyzer/blob/477de790b0211196256a772befe4f577d1a8ba14/crates/ra_syntax/src/grammar/expressions/mod.rs#L204-L209 |
|
I thought it has different syntax, i.e. |
I think it is true that you can't define own macros with that syntax. Still, the parser currently treats |
The following code generates a syntax error "expected SEMI" at the position of the cursor
The text was updated successfully, but these errors were encountered: