comparison src/regexp.h @ 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 7fb4e244b16e
children
comparison
equal deleted inserted replaced
34083:2ff0721f8cc2 34084:90063f44c99a
176 void (*regfree)(regprog_T *); 176 void (*regfree)(regprog_T *);
177 // bt_regexec_nl or nfa_regexec_nl 177 // bt_regexec_nl or nfa_regexec_nl
178 int (*regexec_nl)(regmatch_T *, char_u *, colnr_T, int); 178 int (*regexec_nl)(regmatch_T *, char_u *, colnr_T, int);
179 // bt_regexec_mult or nfa_regexec_mult 179 // bt_regexec_mult or nfa_regexec_mult
180 long (*regexec_multi)(regmmatch_T *, win_T *, buf_T *, linenr_T, colnr_T, int *); 180 long (*regexec_multi)(regmmatch_T *, win_T *, buf_T *, linenr_T, colnr_T, int *);
181 //char_u *expr; 181 #ifdef DEBUG
182 char_u *expr;
183 #endif
182 }; 184 };
183 185
184 // Flags used by vim_regsub() and vim_regsub_both() 186 // Flags used by vim_regsub() and vim_regsub_both()
185 #define REGSUB_COPY 1 187 #define REGSUB_COPY 1
186 #define REGSUB_MAGIC 2 188 #define REGSUB_MAGIC 2