diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-01-18 15:18:49 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-01-18 15:18:49 -0800 |
| commit | 32b258868ccd35b6fce3cf5fa6221da74868bc0b (patch) | |
| tree | 52a4a5d6c953332485dd5958a956b424102287cf /nomsu.2.peg | |
| parent | d92685ab9502ccb173999dbe2d95fe0658cd5dff (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.peg | 2 |
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? |
