diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-05-20 00:33:11 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-05-20 00:33:11 -0700 |
| commit | d9f0a92839000018eaaf7ebb34ed0260792fd116 (patch) | |
| tree | 1e406906be6dd96d2741d8922e5d0c1c10351f6a /print.c | |
| parent | 355e06a58e918c6c1d39902b0a14029a16c323ba (diff) | |
Added (!) syntax for errors with proper opcode support
Diffstat (limited to 'print.c')
| -rw-r--r-- | print.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -413,8 +413,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 == BP_CAPTURE && m->pat->args.capture.name - && strncmp(m->pat->args.capture.name, "!", m->pat->args.capture.namelen) == 0) { + if (m->pat->type == BP_ERROR) { printf("\033[31;1m"); printer_t tmp = {.file = pr->file}; // No bells and whistles print_match(stdout, &tmp, m); // Error message |
