[rustdoc] Add highlighting for comments in items declaration by GuillaumeGomez ·...
source link: https://github.com/rust-lang/rust/pull/117869
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Conversation
Member
Fixes #117555.
So after the discussion in #117643, the outcome was that having the comments in the item declaration at the same level (in term of color) as the rest of the code was actually a bit distracting and could be improved.
The current highlighting color for comments is "lighter" than the rest and I think it fits perfectly to improve the current situation. With this, we now have different "levels" which makes it easier to read and filter out what we want when reading the items declaration.
Here's a screenshot:
r? @notriddle
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK