Skip to content
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

The > in the fat arrow => is categorized semantically as an angle bracket in macros. #18505

Open
Quelfth opened this issue Nov 12, 2024 · 0 comments
Labels
C-bug Category: bug

Comments

@Quelfth
Copy link

Quelfth commented Nov 12, 2024

rust-analyzer version: 0.3.2180-standalone (30e71b6 2024-11-10)

rustc version: 1.81.0 (eeb90cda1 2024-09-04)

editor or extension: VS Code + rust-analyzer v0.3.2180

code snippet to reproduce:

macro_rules! a_macro {
    () => {}
}

Image

In my color scheme, fat arrows are supposed to be green, and the textmate tokens correctly categorize => as fat arrow here. However, the > part of the arrow token has the semantic token type "angle", even though as far as I'm aware, a > which is part of a => token can never function as an angle bracket, and it certainly does not have this function in this case. As far as I'm aware, this happens for any => which is part of the syntax for a macro invocation or definition.

@Quelfth Quelfth added the C-bug Category: bug label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

1 participant