diff --git a/lib/src/lib.rs b/lib/src/lib.rs index 8c05706..6f24aa2 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -108,6 +108,7 @@ impl Report { ParseError::UnexpectedEOF | ParseError::UnexpectedEOFWanted(_) => { TextRange::empty(0u32.into()) } + ParseError::DuplicatedArgs(at, _) => at, _ => panic!("report a bug, pepper forgot to handle a parse error"), }; let mut message = err.to_string();