You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
union and other weak keywords are not highlighted correctly in rustdoc code blocks #85016
Hm, now that I think about it, this might be a bit harder to solve than I initially thought, as weak keywords require a bit of syntactic context to find out whether they're being used as keywords or not. Thus, the logic for weak keywords will probably have to be further up the chain than get_real_ident_class. I'll try what I can to get this to work, but if I can't get a working solution I'll either put something on Zulip or release assignment of this issue.
Activity
ThePuzzlemaker commentedon May 7, 2021
Hm, now that I think about it, this might be a bit harder to solve than I initially thought, as weak keywords require a bit of syntactic context to find out whether they're being used as keywords or not. Thus, the logic for weak keywords will probably have to be further up the chain than
get_real_ident_class. I'll try what I can to get this to work, but if I can't get a working solution I'll either put something on Zulip or release assignment of this issue.Rollup merge of rust-lang#87428 - GuillaumeGomez:union-highlighting, …
Rollup merge of rust-lang#87428 - GuillaumeGomez:union-highlighting, …
GuillaumeGomez commentedon Feb 19, 2022
The
unionkeyword highlighting has been fixed in #87428. Please open another issue for the other "weak" keywords so we can fix them as well.