We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8b7b039 + 2828f45 commit 05fcaffCopy full SHA for 05fcaff
docs/documentation.html
@@ -721,7 +721,7 @@ <h3 id="parsing-lists">Parsing Lists</h3>
721
<p>One of the most frequent questions about Peggy grammars is how to parse a
722
delimited list of items. The cleanest current approach is:</p>
723
724
-<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]; }
725
word = $[a-z]i+
726
_ = [ \t]*</code></pre>
727
0 commit comments