@@ -38,8 +38,8 @@ |
||
| 38 | 38 | ): Parser { |
| 39 | 39 | return Between::these($from, $to, Join::the(Repeatable::parser(AllOrNothing::in(Either::of( |
| 40 | 40 | Map::the(($escape2 ?: $escape) . $escape, fn() => $escape), // escaped escape |
| 41 | - Join::the(Sequence::of(Ignore::the($escape), $to)), // escaped end |
|
| 42 | - Except::for($to, Any::symbol()), // anything else |
|
| 41 | + Join::the(Sequence::of(Ignore::the($escape), $to)), // escaped end |
|
| 42 | + Except::for ($to, Any::symbol()), // anything else |
|
| 43 | 43 | ))))); |
| 44 | 44 | } |
| 45 | 45 | } |
@@ -39,7 +39,9 @@ |
||
| 39 | 39 | return Between::these($from, $to, Join::the(Repeatable::parser(AllOrNothing::in(Either::of( |
| 40 | 40 | Map::the(($escape2 ?: $escape) . $escape, fn() => $escape), // escaped escape |
| 41 | 41 | Join::the(Sequence::of(Ignore::the($escape), $to)), // escaped end |
| 42 | - Except::for($to, Any::symbol()), // anything else |
|
| 42 | + Except::for($to, Any::symbol()) { |
|
| 43 | + , // anything else |
|
| 43 | 44 | ))))); |
| 45 | + } |
|
| 44 | 46 | } |
| 45 | 47 | } |