scanner/error: add InvalidFlowScalar, UnknownEscape variants

for the coming work on scalars
This commit is contained in:
Paul Stemmet 2021-06-16 15:23:39 +00:00 committed by Paul Stemmet
parent 4bf4b50e3d
commit aa2dec094e
1 changed files with 7 additions and 0 deletions

View File

@ -30,6 +30,13 @@ pub enum ScanError
/// Either an anchor (*) or alias (&)'s name was invalid
InvalidAnchorName,
/// A flow scalar was invalid for some reason
InvalidFlowScalar,
/// A character that was not valid for the escape
/// sequence was encountered
UnknownEscape,
/// Got end of stream while parsing a token
UnexpectedEOF,
}