Next-generation syntax highlighting for rustdoc #75981
Labels
A-markdown-parsing
Area: Markdown parsing for doc-comments
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-hard
Call for participation: Hard difficulty. Experience needed to fix: A lot.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
At the moment, rustdoc uses only the lexer to do syntax highlighting (#75775). This has the benefits of simplicity & performance, and gets us 80% of the way quality wise, but it is not perfect. For example, lexer-based highlighting can't properly detect contextual keywords, glued/split operators, etc.
We can and probably should make this better, though this requires a lot of fundamental work on IDE-ification of the compiler
The text was updated successfully, but these errors were encountered: