Fix doctest multi-line mod attributes handling
This commit is contained in:
parent
0677edc86e
commit
c37cd911a4
2 changed files with 66 additions and 8 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue