error messages for escaped things

This commit is contained in:
Folkert 2021-02-26 22:02:42 +01:00
parent 41720ec5db
commit 2f4099f1f0
5 changed files with 218 additions and 31 deletions

View file

@ -429,17 +429,17 @@ pub enum EString<'a> {
Space(BadInputError, Row, Col),
EndlessSingle(Row, Col),
EndlessMulti,
StringEscape(Escape),
Format(&'a SyntaxError<'a>),
UnknownEscape(Row, Col),
Format(&'a SyntaxError<'a>, Row, Col),
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Escape {
EscapeUnknown,
BadUnicodeFormat(u16),
BadUnicodeCode(u16),
BadUnicodeLength(u16, i32, i32),
}
// #[derive(Debug, Clone, Copy, PartialEq, Eq)]
// pub enum Escape {
// EscapeUnknown,
// BadUnicodeFormat(u16),
// BadUnicodeCode(u16),
// BadUnicodeLength(u16, i32, i32),
// }
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum ERecord<'a> {