From aa0b8fc59168c9b86eeae311702133a0b896d2c8 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 10 Sep 2020 03:20:07 -0700 Subject: Added multiline variants of operators --- bpeg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bpeg.h') 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] [...]\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 replace the input pattern with the given replacement\n" " -g --grammar 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; -- cgit v1.2.3