-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Rust definition is a bit out of date #2937
Comments
This is a known problem. The Rust mode was written back when Rust was quite a different language. I looked into updating it recently, but Rust still does not have a formal grammar, so I gave up on that. It'll have to be rewritten from scratch, I think, since the current approach is used to work around some strangeness in the old syntax that no longer exists. |
Is true, I haven't been able to find all the grammar on a singe place but there is a lot of info on the Rust grammar definition throughout this document. |
That document is where I started, but the pseudo-formal grammar parts are a joke -- they are full of holes, refer to other productions that are never defined, etc. Then I looked at the parser, but that is, if I remember correctly, over 4000 lines long, so I just gave up. If someone who is familiar with modern Rust wants to take a stab at this, that'd be great. |
I'll ask around tomorrow at the IRC channel. |
This was fixed by the new Rust mode. |
There are a few things that causes the the code to get all wonky with CodeMirror and some new stuff missing.
The following are some things I've found so far:
I noticed @marijnh did the initial contribution and maintained it over the years.
Can you help update the language definition?
The text was updated successfully, but these errors were encountered: