aboutsummaryrefslogtreecommitdiff
path: root/src/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.rs')
-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,