aboutsummaryrefslogtreecommitdiff
path: root/nomsu.2.peg
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-01-18 15:18:49 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-01-18 15:18:49 -0800
commit32b258868ccd35b6fce3cf5fa6221da74868bc0b (patch)
tree52a4a5d6c953332485dd5958a956b424102287cf /nomsu.2.peg
parentd92685ab9502ccb173999dbe2d95fe0658cd5dff (diff)
Fix for parsing an indented top_block that starts with a comment and has
code after it.
Diffstat (limited to 'nomsu.2.peg')
-rw-r--r--nomsu.2.peg2
1 files changed, 1 insertions, 1 deletions
diff --git a/nomsu.2.peg b/nomsu.2.peg
index 64db7fa..3b98a20 100644
--- a/nomsu.2.peg
+++ b/nomsu.2.peg
@@ -15,7 +15,7 @@ file_chunks (FileChunks) <-
ws* unexpected_chunk?
top_block (Block) <-
- comment? blank_lines? statement (nl_nodent statement)*
+ (comment nl_nodent)? statement (nl_nodent statement)*
empty_block (Block) <-
comment? blank_lines?