scanner/error: add InvalidFlowScalar, UnknownEscape variants
for the coming work on scalars
This commit is contained in:
parent
4bf4b50e3d
commit
aa2dec094e
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue