diff options
Diffstat (limited to 'grammars/bp.bp')
| -rw-r--r-- | grammars/bp.bp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/grammars/bp.bp b/grammars/bp.bp index 725d213..6d98187 100644 --- a/grammars/bp.bp +++ b/grammars/bp.bp @@ -29,8 +29,9 @@ Not-eq-pat: @first=(suffixed-pat / simple-pat)__"!="__@second=pat Dot: `. !`. String: ( - `" @s=*(Escape / !`".) (`" / @!=(''=> "Expected closing quote here")) - / `' @s=*(Escape / !`'.) (`' / @!=(''=> "Expected closing quote here")) + `" @s=.. (`" / $ @!=(''=> "Expected closing quote here")) + / `' @s=.. (`' / $ @!=(''=> "Expected closing quote here")) + / `{ @s=.. (`} / $ @!=(''=> "Expected closing brace here")) ) Chars: `` @+(Char-range/Char) % `, Char-range: @low=. `- (@high=. / @!=(''=> "Expected a second character to form a character range")) |
