-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-doctestsArea: Documentation tests, run by rustdocArea: Documentation tests, run by rustdocT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
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.
let s = "hello
# because why not?";
and soon, after #84445,
let s = "hello
#because why not?";
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)
Metadata
Metadata
Assignees
Labels
A-doctestsArea: Documentation tests, run by rustdocArea: Documentation tests, run by rustdocT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.