From 3f6e7c2beb512d6c3db51bfc94279f0d11e47057 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 16 Jan 2021 10:29:09 -0800 Subject: Renamed VM_ to BP_ --- print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'print.c') diff --git a/print.c b/print.c index 830df5a..80a8f8f 100644 --- a/print.c +++ b/print.c @@ -257,7 +257,7 @@ static const char *context_after(printer_t *pr, const char *pos) void _print_match(FILE *out, printer_t *pr, match_t *m) { pr->pos = m->start; - if (m->pat->type == VM_REPLACE) { + if (m->pat->type == BP_REPLACE) { if (m->skip_replacement) { _print_match(out, pr, m->child); return; @@ -369,7 +369,7 @@ void print_match(FILE *out, printer_t *pr, match_t *m) int print_errors(printer_t *pr, match_t *m) { int ret = 0; - if (m->pat->type == VM_CAPTURE && m->pat->args.capture.name && streq(m->pat->args.capture.name, "!")) { + if (m->pat->type == BP_CAPTURE && m->pat->args.capture.name && streq(m->pat->args.capture.name, "!")) { printf("\033[31;1m"); print_match(stdout, pr, m); printf("\033[0m\n"); -- cgit v1.2.3