mirror of
https://github.com/status-im/NimYAML.git
synced 2025-01-27 03:25:22 +00:00
Merge branch 'master' of ../../git/NimYAML
This commit is contained in:
commit
6edee9c81b
@ -472,7 +472,9 @@ 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, mBlockSequenceItem:
|
of mUnknown, mImplicitBlockMapKey, mImplicitBlockMapValue,
|
||||||
|
mExplicitBlockMapKey, mExplicitBlockMapValue,
|
||||||
|
mBlockSequenceItem:
|
||||||
state = ypBlockAfterAlias
|
state = ypBlockAfterAlias
|
||||||
else:
|
else:
|
||||||
raiseError("Unexpected alias")
|
raiseError("Unexpected alias")
|
||||||
@ -504,7 +506,7 @@ proc parse*(parser: YamlSequentialParser, s: Stream): YamlStream =
|
|||||||
state = ypBlockLineEnd
|
state = ypBlockLineEnd
|
||||||
of tLineStart:
|
of tLineStart:
|
||||||
discard
|
discard
|
||||||
of tColon, tDash, tQuestionmark:
|
of tColon, tDash, tQuestionmark, tOpeningBrace, tOpeningBracket:
|
||||||
leaveMoreIndentedLevels()
|
leaveMoreIndentedLevels()
|
||||||
if level.mode != mScalar:
|
if level.mode != mScalar:
|
||||||
state = ypBlockLineStart
|
state = ypBlockLineStart
|
||||||
|
Loading…
x
Reference in New Issue
Block a user