Content deleted Content added
→Definition: Moved one example to after the syntax section |
→More examples: Simplified Pascal comment example |
||
Line 136:
</syntaxhighlight>
The following recursive rule matches Pascal-style nested comment syntax, {{code|(* which can (* nest *) like this *)}}.
<syntaxhighlight lang="peg">
Begin ← '(*'
End ← '*)'
▲N ← C / (!Begin !End Z)
</syntaxhighlight>
|