From 112adaaa3fcf612fb107db311a47cdbb5bef93dc Mon Sep 17 00:00:00 2001 From: James Sanderson Date: Thu, 19 May 2016 01:09:33 +0100 Subject: Accept empty table on last line --- src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/parser.rs b/src/parser.rs index 68e12d5..31205c8 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -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, -- cgit v1.2.3