comparison src/regexp.c @ 34084:90063f44c99a v9.1.0011

patch 9.1.0011: regexp cannot match combining chars in collection Commit: https://github.com/vim/vim/commit/d2cc51f9a1a5a30ef5d2e732f49d7f495cae24cf Author: Christian Brabandt <cb@256bit.org> Date: Thu Jan 4 22:54:08 2024 +0100 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>
author Christian Brabandt <cb@256bit.org>
date Thu, 04 Jan 2024 23:00:04 +0100
parents 0943c2a880cc
children 8b5471360746
comparison
equal deleted inserted replaced
34083:2ff0721f8cc2 34084:90063f44c99a
2684 static regengine_T bt_regengine = 2684 static regengine_T bt_regengine =
2685 { 2685 {
2686 bt_regcomp, 2686 bt_regcomp,
2687 bt_regfree, 2687 bt_regfree,
2688 bt_regexec_nl, 2688 bt_regexec_nl,
2689 bt_regexec_multi, 2689 bt_regexec_multi
2690 #ifdef DEBUG
2691 ,(char_u *)""
2692 #endif
2690 }; 2693 };
2691 2694
2692 #include "regexp_nfa.c" 2695 #include "regexp_nfa.c"
2693 2696
2694 static regengine_T nfa_regengine = 2697 static regengine_T nfa_regengine =
2695 { 2698 {
2696 nfa_regcomp, 2699 nfa_regcomp,
2697 nfa_regfree, 2700 nfa_regfree,
2698 nfa_regexec_nl, 2701 nfa_regexec_nl,
2699 nfa_regexec_multi, 2702 nfa_regexec_multi
2703 #ifdef DEBUG
2704 ,(char_u *)""
2705 #endif
2700 }; 2706 };
2701 2707
2702 // Which regexp engine to use? Needed for vim_regcomp(). 2708 // Which regexp engine to use? Needed for vim_regcomp().
2703 // Must match with 'regexpengine'. 2709 // Must match with 'regexpengine'.
2704 static int regexp_engine = 0; 2710 static int regexp_engine = 0;