diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/checkauto.l | 9 | ||||
| -rw-r--r-- | src/cregex.c | 4 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/checkauto.l b/src/checkauto.l index 541bbf3f..c42d97cf 100644 --- a/src/checkauto.l +++ b/src/checkauto.l @@ -36,6 +36,15 @@ c_forpair | c_forrange | c_forfilter | c_forwhile | +c_formatch | +c_fortoken | +c_FOREACH | +c_FORPAIR | +c_FORRANGE | +c_FORFILTER | +c_FORWHILE | +c_FORMATCH | +c_FORTOKEN | for | while | switch { block_type |= LOOP; state = BRACES; } diff --git a/src/cregex.c b/src/cregex.c index c30ff967..d19b063f 100644 --- a/src/cregex.c +++ b/src/cregex.c @@ -1268,8 +1268,8 @@ cregex_replace_sv(const cregex* re, csview input, const char* replace, unsigned } cstr -cregex_replace_pattern_n(const char* pattern, const char* input, const char* replace, unsigned count, - bool (*mfun)(int, csview, cstr*), int crflags) { +cregex_replace_pattern_ex(const char* pattern, const char* input, const char* replace, unsigned count, + bool (*mfun)(int, csview, cstr*), int crflags) { cregex re = cregex_init(); if (cregex_compile(&re, pattern, crflags) != CREG_OK) assert(0); |
