-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Highlight identifier after 'impl' keyword in Rust language definition #3112
Comments
Because if you intended to cover the Also, if Also, if |
Right, I see. I was just looking to cover
which is just the bit we needed at the moment. I'd need to delve a bit ( a lot!) further into highlight definitions to match the others (especially the generics stuff). |
Thanks for chiming in @RunDevelopment
Is there some reason these contexts should be highlighted differently?
We're happy here if someone implemented I'd guess generics probably also works with classes, yet we happily ignore that at the moment.
I think the new multi-class matching stuff might help with this. |
Not at all. I was asking to get at |
Isn't Until we have a language champion it's pretty common for some grammars to grow organically as people find and fix issues with them. There is no "master plan". If you'd like to step up and help us out with Rust that'd be pretty awesome. :) |
Yes, it is. Sorry for being clear here. I meant that it would strange that in |
@RayAtRadix What is your involvement in Rust? It looks like they are using us for highlighting their own docs but I don't think they are using the built-in Rust grammar... I wonder if you know who we might talk to see what changes they've made and if we could possibly get those in the official library here? |
Hi Josh. I'm just experimenting with Rust at the moment, and building example pages of documentation as I'm going along, so I'm by no means a Rust expert unfortunately. Yes, we are using the built-in Rust grammar, but I needed the impl identifier working for our documentation pages. The diff I sent is the only change I've made so far. If it helps then feel free to use it :-) |
I've made a lot of other changes a cleanups in the simpler struct PR: 9d6befc |
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
[email protected]
for the project I'm working on.It looks as if the identifier after the
impl
keyword is not being highlighted. I've added an extra element to the class definition to includeimpl
.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: