aboutsummaryrefslogtreecommitdiff
path: root/pattern.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-09-23 13:42:46 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-09-23 13:42:46 -0700
commite938ecbdcce8d56d2cf78e57879e364f990b99be (patch)
tree18579b8060fd2295238cbbf8d4f25781f41ba377 /pattern.c
parentcf99abb852536867169168d2c7fabf158099dfd9 (diff)
parent744a92756200052837e25f4f7758175241528536 (diff)
Merge branch 'master' into setjmp
Diffstat (limited to 'pattern.c')
-rw-r--r--pattern.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/pattern.c b/pattern.c
index 6afe5a2..a1f5b04 100644
--- a/pattern.c
+++ b/pattern.c
@@ -400,16 +400,6 @@ static pat_t *_bp_simplepattern(file_t *f, const char *str)
}
// Parentheses
case '(': {
- if (start + 2 < f->end && strncmp(start, "(!)", 3) == 0) { // (!) errors
- str = start + 3;
- pat_t *pat = bp_simplepattern(f, str);
- if (!pat) pat = new_pat(f, str, str, 0, 0, BP_STRING);
- pat = expand_replacements(f, pat, false);
- pat_t *error = new_pat(f, start, pat->end, pat->min_matchlen, pat->max_matchlen, BP_ERROR);
- error->args.pat = pat;
- return error;
- }
-
pat_t *pat = bp_pattern_nl(f, str, true);
if (!pat)
file_err(f, str, str, "There should be a valid pattern after this parenthesis.");