Switch rustdoc from lexer::StringReader
to rustc_lexer
#75619
Labels
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
In #75528, we would like to tweak the structure of the tokens rustc uses. One of the components which heavily depends on the current structure is
rustdoc
(html
andcheck_code_block_syntax
module uselexer::StringReader
).I think, for this issue and in general, it makes sense to switch
rustdoc
over torustc_lexer
, which produces lower-level guaranteed lossless tokens, which look like a better fit for the task of syntax highlighting.I plan to do this refactor myself, but I want to check with @rust-lang/rustdoc if this is a good idea.
EDIT: cc #63284
The text was updated successfully, but these errors were encountered: