From 77a338c1673ae5815ea2124f709cc657da30e8c8 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 17 Jul 2018 17:25:12 -0700 Subject: Oops, didn't mean to check in smushed_action. --- nomsu.1.peg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nomsu.1.peg') diff --git a/nomsu.1.peg b/nomsu.1.peg index 39c0a9a..10a7715 100644 --- a/nomsu.1.peg +++ b/nomsu.1.peg @@ -1,7 +1,7 @@ -- Nomsu version 2 file (FileChunks): {:curr_indent: ' '* :} - ("#!" (!"nomsu" [^%nl])* "nomsu" %ws+ "-V" %ws* {:version: ([0-9.]+ -> tonumber) :} [^%nl]*)? + ("#!" (!"nomsu" [^%nl])* "nomsu" %ws+ "-V" %ws* {:version: [0-9.]+ :} [^%nl]*)? comment? blank_lines? (chunk (nl_nodent chunk_delimeter nl_nodent chunk)*)? blank_lines? @@ -16,7 +16,7 @@ nl_nodent: blank_lines nodent nl_indent: blank_lines {:curr_indent: indent :} (comment nl_nodent)? comment: - "#" (({} {~ [^%nl]* ((%nl (!indent %ws* %nl)*) (indent -> '') [^%nl]*)* ~} %userdata) => add_comment) + "#" (({} {~ [^%nl]* (%nl+ (indent -> '') [^%nl]*)* ~} %userdata) => add_comment) eol_comment: "#" (({} {[^%nl]*} %userdata) => add_comment) -- cgit v1.2.3