mirror of https://github.com/status-im/NimYAML.git
Allow stream end after block scalar indicators
This commit is contained in:
parent
b99fa8df7a
commit
e46ef33a23
|
@ -586,7 +586,7 @@ parserState blockObjectStart:
|
|||
of ltBlockScalarHeader:
|
||||
c.lex.indentation = c.ancestry[^1].indentation
|
||||
c.advance()
|
||||
assert c.lex.cur == ltBlockScalar
|
||||
assert c.lex.cur in {ltBlockScalar, ltStreamEnd}
|
||||
if c.level.indentation == UnknownIndentation:
|
||||
c.level.indentation = c.lex.indentation
|
||||
c.advance()
|
||||
|
|
Loading…
Reference in New Issue