mirror of https://github.com/status-im/NimYAML.git
Fixed parser code
This commit is contained in:
parent
6edee9c81b
commit
9bd12797d2
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue