mirror of https://github.com/status-im/NimYAML.git
Change logic to prevent early doc end state (#115)
fixes #114 Co-authored-by: quantimnot <quantimnot@users.noreply.github.com>
This commit is contained in:
parent
741fd18047
commit
5a3aab9389
|
@ -551,7 +551,7 @@ proc readBlockScalar(lex: var Lexer) =
|
|||
break body
|
||||
else:
|
||||
if lex.currentIndentation() < indent or
|
||||
(indent == 0 and lex.dirEndFollows() or lex.docEndFollows()):
|
||||
(indent == 0 and (lex.dirEndFollows() or lex.docEndFollows())):
|
||||
break content
|
||||
if lex.cur == Token.Folded and lex.c in space:
|
||||
moreIndented = true
|
||||
|
|
Loading…
Reference in New Issue