Do not emit "incorrect close delimiter" twice in the same place

This commit is contained in:
Esteban Küber
2018-08-15 14:26:03 -07:00
parent 2a74d7924a
commit 1b5e29ae6f
4 changed files with 20 additions and 22 deletions

View File

@@ -67,6 +67,7 @@ pub struct StringReader<'a> {
span_src_raw: Span,
open_braces: Vec<(token::DelimToken, Span)>,
crate override_span: Option<Span>,
last_unclosed_found_span: Option<Span>,
}
impl<'a> StringReader<'a> {
@@ -195,6 +196,7 @@ impl<'a> StringReader<'a> {
span_src_raw: syntax_pos::DUMMY_SP,
open_braces: Vec::new(),
override_span,
last_unclosed_found_span: None,
}
}