summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--srcinfo.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/srcinfo.lua b/srcinfo.lua
index 2612fd4..9982a98 100644
--- a/srcinfo.lua
+++ b/srcinfo.lua
@@ -8,7 +8,7 @@ local definition = whitespace * lpeg.C(identifier) * whitespace * "=" * whitespa
local emptylines = (whitespace * newline)^1
local comment = lpeg.P"#" * rest * newline
local block = lpeg.Ct((lpeg.Ct(definition) + comment)^1)
-local thing = emptylines^0 * block * (emptylines * block)^0
+local thing = emptylines^0 * block * (emptylines * block)^0 * emptylines^0 * -lpeg.P(1)
local capture = lpeg.Ct(thing)