Fix doctest multi-line mod attributes handling

This commit is contained in:
Guillaume Gomez 2022-04-02 17:05:04 +02:00
parent 0677edc86e
commit c37cd911a4
2 changed files with 66 additions and 8 deletions

View file

@ -210,6 +210,10 @@ impl<'a> Parser<'a> {
self.unclosed_delims.extend(snapshot.unclosed_delims.clone());
}
pub fn unclosed_delims(&self) -> &[UnmatchedBrace] {
&self.unclosed_delims
}
/// Create a snapshot of the `Parser`.
pub(super) fn create_snapshot_for_diagnostic(&self) -> SnapshotParser<'a> {
let mut snapshot = self.clone();