From 32b258868ccd35b6fce3cf5fa6221da74868bc0b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 18 Jan 2019 15:18:49 -0800 Subject: Fix for parsing an indented top_block that starts with a comment and has code after it. --- nomsu.5.peg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nomsu.5.peg') diff --git a/nomsu.5.peg b/nomsu.5.peg index 751e033..2ecc800 100644 --- a/nomsu.5.peg +++ b/nomsu.5.peg @@ -17,7 +17,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? -- cgit v1.2.3