From ce1868d707b0f0338a93057d017252c98e50e15d Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 15 Jan 2021 12:40:19 -0800 Subject: Added support for `bp -p 'foo: "xx"; baz; baz: foo'` --- bp.1 | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'bp.1') diff --git a/bp.1 b/bp.1 index 2c48799..5b220ad 100644 --- a/bp.1 +++ b/bp.1 @@ -14,8 +14,6 @@ bp \- Bruce's Parsing Expression Grammar tool [\fI-I\fR|\fI--inplace\fR] [\fI-p\fR|\fI--pattern\fR \fI\fR] [\fI-P\fR|\fI--pattern-string\fR \fI\fR] -[\fI-d\fR|\fI--define\fR \fI\fR:\fI\fR] -[\fI-D\fR|\fI--define-string\fR \fI\fR:\fI\fR] [\fI-r\fR|\fI--replace\fR \fI\fR] [\fI-g\fR|\fI--grammar\fR \fI\fR] [\fI-c\fR|\fI--conntext\fR \fI\fR] @@ -42,12 +40,6 @@ Perform pattern matching case-insensitively. .B \-I\fR, \fB--inplace Perform filtering or replacement in-place (i.e. overwrite files with new content). -.B \-d\fR, \fB--define \fI\fR:\fI\fR -Define a grammar rule using a bp pattern. - -.B \-D\fR, \fB--define-string \fI\fR:\fI\fR -Define a grammar rule using a bp string pattern. - .B \-r\fR, \fB--replace \fI\fR Replace all occurrences of the main pattern with the given string. @@ -188,6 +180,9 @@ Will match only if \fI\fR matches and \fI\fR doesn't match the text Will match only if \fI\fR and \fI\fR don't both match and have the exact same length. Pronounced \fI\fB-assuming-it-doesn't-equal-\fI\fR +.B \fI\fB:\fI\fR +\fBDefine-\fI\fB-to-mean-\fI\fR (pattern definition) + .B | This pattern matches the indentation at the beginning of a line that has the same indentation as the line before (or zero indentation on the first line). -- cgit v1.2.3