aboutsummaryrefslogtreecommitdiff
path: root/bpeg.bpeg
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2020-09-10 12:02:38 -0700
committerBruce Hill <bruce@bruce-hill.com>2020-09-10 12:02:38 -0700
commitbecd3e07d7173171ca78a281edfc4cdf503daf8f (patch)
treee3d5611075893596b55b8e7771b7fba22a4ddf63 /bpeg.bpeg
parentaf60c05236704b231c1974ae90214cfe1efad38e (diff)
Fixed semicolon rule
Diffstat (limited to 'bpeg.bpeg')
-rw-r--r--bpeg.bpeg2
1 files changed, 1 insertions, 1 deletions
diff --git a/bpeg.bpeg b/bpeg.bpeg
index 6ab12c9..cd92c2d 100644
--- a/bpeg.bpeg
+++ b/bpeg.bpeg
@@ -1,7 +1,7 @@
# This is a file defining the BPEG grammar using BPEG syntax
grammar;
-grammar = __ @[main-pattern]extended-pat __ (*def % (__`;__)) ?(`;__);
+grammar = __ @[main-pattern]extended-pat __ *((__`;__) def) ?(`;__);
def = @[name]ref __ `= __ @[definition]extended-pat;
# This is used for command line arguments: