From aa0b8fc59168c9b86eeae311702133a0b896d2c8 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 10 Sep 2020 03:20:07 -0700 Subject: Added multiline variants of operators --- bpeg.bpeg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bpeg.bpeg') diff --git a/bpeg.bpeg b/bpeg.bpeg index ef08239..2064510 100644 --- a/bpeg.bpeg +++ b/bpeg.bpeg @@ -26,8 +26,8 @@ escapeSequence = ( /`a/`b/`e/`n/`r/`t/`v / . / \n ); no = `! _ @pat; -anythingBut = `~ _ @pat; -uptoAnd = `& _ @pat; +anythingBut = `~ ?`~ _ @pat; +uptoAnd = `& ?`& _ @pat; repeat = ( @[min]int _ `- _ @[max]int / @[min]{->"0"} @[max]int _ `- -- cgit v1.2.3