aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Sanderson <zofrex@gmail.com>2016-05-19 01:09:33 +0100
committerJames Sanderson <zofrex@gmail.com>2016-05-19 01:09:33 +0100
commit112adaaa3fcf612fb107db311a47cdbb5bef93dc (patch)
tree250b0bf9031a433af2dff3130afa1394589a3b0e
parent6450da87ba36a48b85c34e0cec6eee520b86fe2c (diff)
downloadmilf-rs-112adaaa3fcf612fb107db311a47cdbb5bef93dc.tar.gz
milf-rs-112adaaa3fcf612fb107db311a47cdbb5bef93dc.zip
Accept empty table on last line
-rw-r--r--src/parser.rs2
1 files changed, 1 insertions, 1 deletions
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,