Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Rust's impl are not highlighted quite correctly. #7

Closed
atheriel opened this issue Jul 25, 2014 · 1 comment
Closed

Rust's impl are not highlighted quite correctly. #7

atheriel opened this issue Jul 25, 2014 · 1 comment
Labels

Comments

@atheriel
Copy link
Contributor

I noticed this earlier today, but my regex skills are not up to solving it on my own:

screen shot 2014-07-24 at 9 28 09 pm

For the first impl, the type should be identified (as it is when following struct). For the second, both type (MyObject) and trait (Clone) should be identified, and "for" should not be confused as the control structure keyword for.

@zargony
Copy link
Owner

zargony commented Feb 17, 2015

You're right. This is because the rule that matches impl statements is pretty basic right now. It's hard to match all cases because of the generic parameters. I tried a few times but didn't find a good solution either yet.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants