Closed
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)