From 5a3aab9389b5076d1876ed37d13eaa0be2c3115b Mon Sep 17 00:00:00 2001 From: quantimnot <54247259+quantimnot@users.noreply.github.com> Date: Sun, 10 Jul 2022 12:14:07 -0400 Subject: [PATCH] Change logic to prevent early doc end state (#115) fixes #114 Co-authored-by: quantimnot --- yaml/private/lex.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaml/private/lex.nim b/yaml/private/lex.nim index d58f61b..59d06ee 100644 --- a/yaml/private/lex.nim +++ b/yaml/private/lex.nim @@ -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