mirror of
https://github.com/fluencelabs/lalrpop
synced 2025-03-16 17:00:53 +00:00
Merge pull request #246 from fitzgen/unrecognized-token-with-expected
Ignore the possible expected token when we find an unrecognized token
This commit is contained in:
commit
690db010be
@ -209,7 +209,7 @@ fn parse_and_normalize_grammar(session: &Session, file_text: &FileText) -> io::R
|
||||
}
|
||||
|
||||
Err(ParseError::UnrecognizedToken { token: Some((lo, _, hi)), expected }) => {
|
||||
assert!(expected.is_empty()); // didn't implement this yet :)
|
||||
let _ = expected; // didn't implement this yet :)
|
||||
let text = &file_text.text()[lo..hi];
|
||||
report_error(&file_text,
|
||||
pt::Span(lo, hi),
|
||||
|
Loading…
x
Reference in New Issue
Block a user