1
0
forked from aniani/vim

patch 9.1.0011: regexp cannot match combining chars in collection

Problem:  regexp cannot match combining chars in collection
Solution: Check for combining characters in regex collections for the
          NFA and BT Regex Engine

Also, while at it, make debug mode work again.

fixes #10286
closes: #12871

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt
2024-01-04 22:54:08 +01:00
parent 81642d9d6f
commit d2cc51f9a1
6 changed files with 166 additions and 11 deletions

View File

@@ -178,7 +178,9 @@ struct regengine
int (*regexec_nl)(regmatch_T *, char_u *, colnr_T, int);
// bt_regexec_mult or nfa_regexec_mult
long (*regexec_multi)(regmmatch_T *, win_T *, buf_T *, linenr_T, colnr_T, int *);
//char_u *expr;
#ifdef DEBUG
char_u *expr;
#endif
};
// Flags used by vim_regsub() and vim_regsub_both()