scanner/error: add variant InvalidKey

for catching cases where a key was given but not valid, typically
involving explicit keys ('?')
This commit is contained in:
Paul Stemmet 2021-08-07 19:44:07 +00:00 committed by Paul Stemmet
parent 76be7001bb
commit 4c61af7eb9

View file

@ -42,6 +42,9 @@ pub enum ScanError
/// A block entry was not expected or allowed
InvalidBlockEntry,
/// A mapping key was not expected or allowed
InvalidKey,
/// A mapping value was not expected or allowed
InvalidValue,