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 assert level.mode == mImplicitBlockMapKey
leaveMoreIndentedLevels() leaveMoreIndentedLevels()
case level.mode case level.mode
of mUnknown, mImplicitBlockMapKey, mImplicitBlockMapValue, of mUnknown, mImplicitBlockMapKey, mBlockMapValue,
mExplicitBlockMapKey, mExplicitBlockMapValue, mExplicitBlockMapKey, mBlockSequenceItem:
mBlockSequenceItem:
state = ypBlockAfterAlias state = ypBlockAfterAlias
else: else:
raiseError("Unexpected alias") raiseError("Unexpected alias")