Accept empty table on last line

This commit is contained in:
James Sanderson 2016-05-19 01:09:33 +01:00
parent 6450da87ba
commit 112adaaa3f

View file

@ -285,7 +285,7 @@ impl<'a> Parser<'a> {
}; };
if self.require_newline_after_table { if self.require_newline_after_table {
self.ws(); self.ws();
if !self.comment() && !self.newline() { if !self.comment() && !self.newline() && self.peek(0).is_some() {
self.errors.push(ParserError { self.errors.push(ParserError {
lo: start, lo: start,
hi: start, hi: start,