Skip to content

Commit

Permalink
Merge pull request #182 from zargold/patch-1
Browse files Browse the repository at this point in the history
Fix typo in documentation
  • Loading branch information
hildjj authored Sep 11, 2021
2 parents 8b7b039 + 2828f45 commit 05fcaff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ <h3 id="parsing-lists">Parsing Lists</h3>
<p>One of the most frequent questions about Peggy grammars is how to parse a
delimited list of items. The cleanest current approach is:</p>

<pre><code class="language-peggy">list = head:word tail:(_ "," _ @word)* { return [head, ...tail); }
<pre><code class="language-peggy">list = head:word tail:(_ "," _ @word)* { return [head, ...tail]; }
word = $[a-z]i+
_ = [ \t]*</code></pre>

Expand Down

0 comments on commit 05fcaff

Please sign in to comment.