aboutsummaryrefslogtreecommitdiff
path: root/bpeg.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2020-09-10 03:20:07 -0700
committerBruce Hill <bruce@bruce-hill.com>2020-09-10 03:20:07 -0700
commitaa0b8fc59168c9b86eeae311702133a0b896d2c8 (patch)
treeab6f4e61aab81e29da95092edbd0a33e09feb30e /bpeg.h
parentace2f9f178dd25bee4d9de661050c7ca6a9187e6 (diff)
Added multiline variants of operators
Diffstat (limited to 'bpeg.h')
-rw-r--r--bpeg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bpeg.h b/bpeg.h
index 0109f8d..7836250 100644
--- a/bpeg.h
+++ b/bpeg.h
@@ -14,9 +14,8 @@ const char *usage = (
"Usage:\n"
" bpeg [flags] <pattern> [<input files>...]\n\n"
"Flags:\n"
- " -m --multiline\t dot and similar patterns include newlines\n"
- " -v --verbose\t print verbose debugging info\n"
" -h --help\t print the usage and quit\n"
+ " -v --verbose\t print verbose debugging info\n"
" -s --slow\t run in slow mode for debugging\n"
" -r --replace <replacement> replace the input pattern with the given replacement\n"
" -g --grammar <grammar file> use the specified file as a grammar\n");
@@ -57,6 +56,7 @@ enum VMOpcode {
*/
typedef struct vm_op_s {
enum VMOpcode op;
+ unsigned int multiline:1;
const char *start, *end;
// Length of the match, if constant, otherwise -1
ssize_t len;