Allow stream end after block scalar indicators

This commit is contained in:
Felix Krause 2017-01-13 16:25:46 +01:00
parent b99fa8df7a
commit e46ef33a23
1 changed files with 1 additions and 1 deletions

View File

@ -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()