From 9a75d25c843b03e3671b71384fd48deb0607db43 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 11 Nov 2018 15:05:18 -0800 Subject: Lots of fixes to the upgrading and codegen/autoformatting pipeline, also deleted nomnom files, since they're mostly not needed anymore. --- nomsu.4.peg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nomsu.4.peg') diff --git a/nomsu.4.peg b/nomsu.4.peg index bbff67d..e7fc09a 100644 --- a/nomsu.4.peg +++ b/nomsu.4.peg @@ -6,7 +6,7 @@ file: {:curr_indent: %nil :} !. -shebang: "#!" (!"nomsu" [^%nl])* "nomsu" ws+ "-V" ws* {:version: [0-9.]+ :} [^%nl]* (%nl / !.) +shebang: "#!" (!"nomsu" [^%nl])* "nomsu" ws+ "-V" ws* [0-9.]+ [^%nl]* (%nl / !.) eof: !. @@ -37,7 +37,7 @@ nl_nodent: blank_lines nodent nl_indent: blank_lines tab_error? {:curr_indent: indent :} (comment nl_nodent)* comment (Comment): - "#" {~ [^%nl]* (%nl+ (indent -> '') [^%nl]*)* ~} + "#" {~ [^%nl]* (%nl+ (indent -> '') [^%nl]*)* (%nl &%nl)* ~} eol_comment (Comment): "#" {[^%nl]*} -- cgit v1.2.3