add lines read from devour_whitespace (#836)

This commit is contained in:
Mark Thom
2021-02-28 02:09:53 -07:00
parent 8c7494885f
commit 0747697d10

View File

@@ -186,10 +186,13 @@ impl MachineState {
parser.devour_whitespace()?;
inner.add_lines_read(parser.num_lines_read());
let result = parser.eof();
let buf = stream.take_buf();
inner.pause_stream(buf)?;
result
}