Closed allan2 closed 6 days ago
That sounds correct to me. These tokens are considered keywords in the language so they should be highlighted as such (unless their span is re-used for something else in the expansion)
That makes sense.
I switched to a different implementation of attribute parsing (syn 1 AttributeArgs
to syn 2 impl Parse
), which errors with error: expected identifier, found keyword `override`
.
Even though a keyword could used as an identifier, I don't think RA can tell. And it was useful to have it highlighted for me.
RA 0.4.2095-standalone rustc 1.82 nightly VS Code 1.92.2
Reserved keywords in macros are highlighted as keywords rather than regular tokens when used in macros.