diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-05-10 23:46:46 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-05-10 23:46:46 -0700 |
| commit | 17dbe5d9e8fcbe2c5f2f494658868b28857a25ca (patch) | |
| tree | b5fafea0caac649ab93c273e1d81f476a13624fc /grammars/bp.bp | |
| parent | 943aa0b71a8c2a03fe4b57317d4c7bc7df7d014c (diff) | |
Added {word} feature and cleaned up the code some.
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")) |
