From c46a8227d0bfc31e4f71b6441303348f5c31174b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 20 Jan 2021 16:12:46 -0800 Subject: Added --skip flag for skipping over patterns --- bp.1 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bp.1') diff --git a/bp.1 b/bp.1 index d7a0c35..d26b814 100644 --- a/bp.1 +++ b/bp.1 @@ -15,6 +15,7 @@ bp \- Bruce's Parsing Expression Grammar tool [\fI-C\fR|\fI--confirm\fR] [\fI-p\fR|\fI--pattern\fR \fI\fR] [\fI-r\fR|\fI--replace\fR \fI\fR] +[\fI-s\fR|\fI--skip\fR \fI\fR] [\fI-g\fR|\fI--grammar\fR \fI\fR] [\fI-G\fR|\fI--git\fR] [\fI-c\fR|\fI--conntext\fR \fI\fR] @@ -47,6 +48,11 @@ During in-place modification of a file, confirm before each modification. .B \-r\fR, \fB--replace \fI\fR Replace all occurrences of the main pattern with the given string. +.B \-s\fR, \fB--skip \fI\fR +While looking for matches, skip over \fB\fR occurrences. This can +be useful for behavior like \fBbp -s string\fR (avoiding matches inside string +literals). + .B \-g\fR, \fB--grammar \fI\fR Load the grammar from the given file. -- cgit v1.2.3