aboutsummaryrefslogtreecommitdiff
path: root/print.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-16 10:29:09 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-16 10:29:09 -0800
commit3f6e7c2beb512d6c3db51bfc94279f0d11e47057 (patch)
tree69de5dc22885dd669cc01e0573d6a066257a9c01 /print.c
parenta2f30332ccb8f0d87dc7750d4f081d44fd771f7f (diff)
Renamed VM_ to BP_
Diffstat (limited to 'print.c')
-rw-r--r--print.c4
1 files changed, 2 insertions, 2 deletions
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");