Skip to content

Add attribute highlight modifier to all tokens inside attributes #6599

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

Merged
merged 1 commit into from
Nov 29, 2020

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Nov 21, 2020

This has the side effect that we also emit attribute.attribute highlights now, as in, the tokens that get the attribute semantic type also get the attribute modifier. I personally don't think it's really a problem but maybe it is to some? It's just that it was really simple to implement it this way, which is why I just went this route for now.

Fixes #6536

@Veykril Veykril closed this Nov 27, 2020
@Veykril Veykril deleted the attr-highlight branch November 27, 2020 18:19
@lnicola
Copy link
Member

lnicola commented Nov 27, 2020

Um, I hope you didn't close this because it didn't get reviewed in time.

@Veykril Veykril restored the attr-highlight branch November 27, 2020 19:03
@Veykril
Copy link
Member Author

Veykril commented Nov 27, 2020

Oh no, I was deleting some branches that were unused in my fork just now. Made a mistake with this one so it auto-closed since the branch got deleted
Good thing that you pointed that out, wouldn't have noticed otherwise

@Veykril Veykril reopened this Nov 27, 2020
@matklad
Copy link
Member

matklad commented Nov 29, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Nov 29, 2020

@bors bors bot merged commit 25ebcca into rust-lang:master Nov 29, 2020
@Veykril Veykril deleted the attr-highlight branch November 29, 2020 19:49
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.

Semantic Highlighting: Some tokens within rust attributes are missing "attribute" modifier.
3 participants