&raw const
/&raw mut
is not syntax-highlighted in all files
#19357
Labels
A-highlighting
(semantic) token highlighting
C-bug
Category: bug
E-easy
E-has-instructions
Issue has some instructions and pointers to code to get started
When opening a file that is not in the current project (i.e. RA cannot do its full semantic analysis), syntax highlighting of
&raw
is broken:Note that
raw
is not in the same style asmut
.raw
is not a keyword, but its role as a contextual keyword in these expressions is entirely syntactic so this does not seem to me like it should require full type information to be properly highlighted.rust-analyzer version: rust-analyzer version: 0.3.2337-standalone (5e7dd31 2025-03-09) [/home/r/.vscode-oss/extensions/rust-lang.rust-analyzer-0.3.2337-linux-x64/server/rust-analyzer]
editor or extension: VSCodium, extension v0.3.2337
code snippet to reproduce:
The text was updated successfully, but these errors were encountered: