scanner/error: add InvalidBlockScalar, InvalidTab variants

This commit is contained in:
Paul Stemmet 2021-08-28 13:13:22 +00:00 committed by Paul Stemmet
parent a0d71ef644
commit 1b517b518f

View file

@ -43,9 +43,17 @@ pub enum ScanError
/// is not permitted
InvalidPlainScalar,
/// A block scalar contained a character sequence that
/// is not permitted
InvalidBlockScalar,
/// A block entry was not expected or allowed
InvalidBlockEntry,
/// A tab character '\t' was found in an invalid
/// context, typically block indentation
InvalidTab,
/// A mapping key was not expected or allowed
InvalidKey,