diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-01-20 16:12:46 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-01-20 16:12:46 -0800 |
| commit | c46a8227d0bfc31e4f71b6441303348f5c31174b (patch) | |
| tree | a06e3747fa09c0d737f724000f0e516f9c853b32 /bp.1 | |
| parent | b50ad0cad099c99d4e739fc465b69779f661b77d (diff) | |
Added --skip flag for skipping over patterns
Diffstat (limited to 'bp.1')
| -rw-r--r-- | bp.1 | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -15,6 +15,7 @@ bp \- Bruce's Parsing Expression Grammar tool [\fI-C\fR|\fI--confirm\fR] [\fI-p\fR|\fI--pattern\fR \fI<pattern>\fR] [\fI-r\fR|\fI--replace\fR \fI<replacement>\fR] +[\fI-s\fR|\fI--skip\fR \fI<skip pattern>\fR] [\fI-g\fR|\fI--grammar\fR \fI<grammar file>\fR] [\fI-G\fR|\fI--git\fR] [\fI-c\fR|\fI--conntext\fR \fI<N>\fR] @@ -47,6 +48,11 @@ During in-place modification of a file, confirm before each modification. .B \-r\fR, \fB--replace \fI<replacement>\fR Replace all occurrences of the main pattern with the given string. +.B \-s\fR, \fB--skip \fI<skip pattern>\fR +While looking for matches, skip over \fB<skip pattern>\fR occurrences. This can +be useful for behavior like \fBbp -s string\fR (avoiding matches inside string +literals). + .B \-g\fR, \fB--grammar \fI<grammar file>\fR Load the grammar from the given file. |
