diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-01-16 10:29:09 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-01-16 10:29:09 -0800 |
| commit | 3f6e7c2beb512d6c3db51bfc94279f0d11e47057 (patch) | |
| tree | 69de5dc22885dd669cc01e0573d6a066257a9c01 /print.c | |
| parent | a2f30332ccb8f0d87dc7750d4f081d44fd771f7f (diff) | |
Renamed VM_ to BP_
Diffstat (limited to 'print.c')
| -rw-r--r-- | print.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); |
