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:
10
src/regexp.c
10
src/regexp.c
@@ -2686,7 +2686,10 @@ static regengine_T bt_regengine =
|
||||
bt_regcomp,
|
||||
bt_regfree,
|
||||
bt_regexec_nl,
|
||||
bt_regexec_multi,
|
||||
bt_regexec_multi
|
||||
#ifdef DEBUG
|
||||
,(char_u *)""
|
||||
#endif
|
||||
};
|
||||
|
||||
#include "regexp_nfa.c"
|
||||
@@ -2696,7 +2699,10 @@ static regengine_T nfa_regengine =
|
||||
nfa_regcomp,
|
||||
nfa_regfree,
|
||||
nfa_regexec_nl,
|
||||
nfa_regexec_multi,
|
||||
nfa_regexec_multi
|
||||
#ifdef DEBUG
|
||||
,(char_u *)""
|
||||
#endif
|
||||
};
|
||||
|
||||
// Which regexp engine to use? Needed for vim_regcomp().
|
||||
|
Reference in New Issue
Block a user