Use a proper lexer for hiding code in doctests #84478
Labels
A-doctests
Area: Documentation tests, run by rustdoc
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Right now, rustdoc uses line-by-line heuristics to tell if a line should be hidden. That has false positives with multi-line strings, e.g.
and soon, after #84445,
It would be nice to use a proper lexer so we can detect where strings start and end instead of having to do custom "parsing".
Originally posted by @GuillaumeGomez in #84445 (comment)
The text was updated successfully, but these errors were encountered: