aboutsummaryrefslogtreecommitdiff
path: root/pattern.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2022-05-02 17:25:18 -0400
committerBruce Hill <bruce@bruce-hill.com>2022-05-02 17:25:18 -0400
commitaf668004e85e99858df4a025af82c4602e0ab399 (patch)
tree09f9213ef9780ac4fcbd3b96c421ee09eaa5e128 /pattern.c
parenteb0f18dc7956a1f3ee51c20dedcc02b5304d5ce8 (diff)
Updated Make rules so default is `bp`
Diffstat (limited to 'pattern.c')
-rw-r--r--pattern.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pattern.c b/pattern.c
index d0e364f..83ff0a1 100644
--- a/pattern.c
+++ b/pattern.c
@@ -320,6 +320,9 @@ static pat_t *_bp_simplepattern(const char *str, const char *end, bool inside_st
if (*str == 'N') { // \N (nodent)
all = either_pat(all, new_pat(BP_NODENT, itemstart, ++str, 1, -1));
continue;
+ } else if (*str == 'C') { // \C (current indent)
+ all = either_pat(all, new_pat(BP_CURDENT, itemstart, ++str, 1, -1));
+ continue;
} else if (*str == 'i') { // \i (identifier char)
all = either_pat(all, new_pat(BP_ID_CONTINUE, itemstart, ++str, 1, -1));
continue;