Fixed parser code

This commit is contained in:
Felix Krause 2016-01-07 11:49:01 +01:00
parent 6edee9c81b
commit 9bd12797d2
1 changed files with 3 additions and 4 deletions

View File

@ -472,9 +472,8 @@ proc parse*(parser: YamlSequentialParser, s: Stream): YamlStream =
assert level.mode == mImplicitBlockMapKey
leaveMoreIndentedLevels()
case level.mode
of mUnknown, mImplicitBlockMapKey, mImplicitBlockMapValue,
mExplicitBlockMapKey, mExplicitBlockMapValue,
mBlockSequenceItem:
of mUnknown, mImplicitBlockMapKey, mBlockMapValue,
mExplicitBlockMapKey, mBlockSequenceItem:
state = ypBlockAfterAlias
else:
raiseError("Unexpected alias")