From ad85fb1da590f988cb64f270cf2239c06405b2a7 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 17 Jul 2021 14:19:55 -0700 Subject: Added support for multiple escape sequences: \n,r,t --- bp.1.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'bp.1.md') diff --git a/bp.1.md b/bp.1.md index a716512..d8b95bc 100644 --- a/bp.1.md +++ b/bp.1.md @@ -146,19 +146,22 @@ sequences are not allowed. `` ` ``*c* : The literal character *c* (e.g. `` `@ `` matches the "@" character) -`` ` ``*c1*`,`*c2* -: The literal character *c1* or *c2* (e.g. `` `a,e,i,o,u ``) - `` ` ``*c1*`-`*c2* : The character range *c1* to *c2* (e.g. `` `a-z ``). Multiple ranges can be combined with a comma (e.g. `` `a-z,A-Z ``). +`` ` ``*c1*`,`*c2* +: Any one of the given character or character ranges *c1* or *c2* (e.g. `` `a,e,i,o,u,0-9 ``) + `\`*esc* : An escape sequence (e.g. `\n`, `\x1F`, `\033`, etc.) `\`*esc1*`-`*esc2* : An escape sequence range from *esc1* to *esc2* (e.g. `\x00-x1F`) +`\`*esc1*`,`*esc2* +: Any one of the given escape sequences or ranges *esc1* or *esc2* (e.g. `\r,n,x01-x04`) + `\N` : A special case escape that matches a "nodent": one or more newlines followed by the same indentation that occurs on the current line. -- cgit v1.2.3