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 {
self.ws();
if !self.comment() && !self.newline() {
if !self.comment() && !self.newline() && self.peek(0).is_some() {
self.errors.push(ParserError {
lo: start,
hi: start,