aboutsummaryrefslogtreecommitdiff
path: root/nomsu.1.peg
diff options
context:
space:
mode:
Diffstat (limited to 'nomsu.1.peg')
-rw-r--r--nomsu.1.peg4
1 files changed, 2 insertions, 2 deletions
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)