diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-05-11 12:38:58 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-05-11 12:38:58 -0700 |
| commit | a93220972f8130732c8cd0267c0b14db77ac19ea (patch) | |
| tree | d1141bfdcded68c8b51d9ed6a735aea5134ab4c8 /README.md | |
| parent | 3359a804c8fe02ea4e9bc1abb7430109affdd535 (diff) | |
Overhaul of |-word boundaries (| is deprecated), performance
improvements for repeating matches, tweaks to the logic of word vs. id
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -49,8 +49,7 @@ Pattern | Meaning `$` | The end of a line `__` | Zero or more whitespace characters (including newlines) `_` | Zero or more whitespace characters (excluding newlines) -`|` | A word boundary (i.e. the left or right edge of a word) -`{foo}` | The literal string `foo` with word boundaries on both ends (shorthand for `|"foo"|`) +`{foo}` | The literal string `foo` with word boundaries on both ends `` `c `` | The literal character `c` `` `a-z `` | The character range `a` through `z` `` `a,b `` | The character `a` or the character `b` @@ -99,11 +98,6 @@ Name | Meaning `number` | An integer or floating point number `Hex` | A hexadecimal character `id` | An identifier -`|` | A word boundary -`^` | Start of a line -`^^` | Start of a file -`$` | End of a line -`$$` | End of a file As well as these common definitions, BP also comes with a set of language-specific or domain-specific grammars. These are not full language |
