summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-12-30 19:26:51 +0100
committerGitHub <[email protected]>2022-12-30 19:26:51 +0100
commit9d59845f622fbb9c225bbe32246a3128ad9ec0b1 (patch)
tree528ebcc735cdb5d958b987c886d369bc02a11320 /src
parent5f57d597cd27aef55adbcb3b452973b0c6e33667 (diff)
parente124d8c7377de1dfce45790a196312596f6b9be5 (diff)
downloadSTC-modified-9d59845f622fbb9c225bbe32246a3128ad9ec0b1.tar.gz
STC-modified-9d59845f622fbb9c225bbe32246a3128ad9ec0b1.zip
Merge pull request #41 from tylov/allcaps
Allcaps
Diffstat (limited to 'src')
-rw-r--r--src/checkauto.l9
-rw-r--r--src/cregex.c4
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);