mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
vim-patch:7.4.776 #3062
Problem: Equivalence class for 'd' does not work correctly. Solution: Fix 0x1e0f and 0x1d0b. (Dominique Pelle) Original patch: https://code.google.com/p/vim/source/detail?r=94b17958585153641ad1e813fa144cad57c7170f
This commit is contained in:

committed by
Justin M. Keyes

parent
ef6451a113
commit
3df37a8424
@@ -961,10 +961,10 @@ static void reg_equi_class(int c)
|
|||||||
REGMBC(0x107) REGMBC(0x109) REGMBC(0x10b)
|
REGMBC(0x107) REGMBC(0x109) REGMBC(0x10b)
|
||||||
REGMBC(0x10d)
|
REGMBC(0x10d)
|
||||||
return;
|
return;
|
||||||
case 'd': CASEMBC(0x10f) CASEMBC(0x111) CASEMBC(0x1d0b)
|
case 'd': CASEMBC(0x10f) CASEMBC(0x111) CASEMBC(0x1e0b)
|
||||||
CASEMBC(0x1e11)
|
CASEMBC(0x1e0f) CASEMBC(0x1e11)
|
||||||
regmbc('d'); REGMBC(0x10f) REGMBC(0x111)
|
regmbc('d'); REGMBC(0x10f) REGMBC(0x111)
|
||||||
REGMBC(0x1e0b) REGMBC(0x01e0f) REGMBC(0x1e11)
|
REGMBC(0x1e0b) REGMBC(0x1e0f) REGMBC(0x1e11)
|
||||||
return;
|
return;
|
||||||
case 'e': case '\350': case '\351': case '\352': case '\353':
|
case 'e': case '\350': case '\351': case '\352': case '\353':
|
||||||
CASEMBC(0x113) CASEMBC(0x115) CASEMBC(0x117) CASEMBC(0x119)
|
CASEMBC(0x113) CASEMBC(0x115) CASEMBC(0x117) CASEMBC(0x119)
|
||||||
|
@@ -718,8 +718,8 @@ static int nfa_recognize_char_class(char_u *start, char_u *end, int extra_newl)
|
|||||||
*/
|
*/
|
||||||
static void nfa_emit_equi_class(int c)
|
static void nfa_emit_equi_class(int c)
|
||||||
{
|
{
|
||||||
#define EMIT2(c) EMIT(c); EMIT(NFA_CONCAT);
|
#define EMIT2(c) EMIT(c); EMIT(NFA_CONCAT);
|
||||||
# define EMITMBC(c) EMIT(c); EMIT(NFA_CONCAT);
|
#define EMITMBC(c) EMIT(c); EMIT(NFA_CONCAT);
|
||||||
|
|
||||||
if (enc_utf8 || STRCMP(p_enc, "latin1") == 0
|
if (enc_utf8 || STRCMP(p_enc, "latin1") == 0
|
||||||
|| STRCMP(p_enc, "iso-8859-15") == 0) {
|
|| STRCMP(p_enc, "iso-8859-15") == 0) {
|
||||||
@@ -908,10 +908,10 @@ static void nfa_emit_equi_class(int c)
|
|||||||
EMITMBC(0x10b) EMITMBC(0x10d)
|
EMITMBC(0x10b) EMITMBC(0x10d)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case 'd': CASEMBC(0x10f) CASEMBC(0x111) CASEMBC(0x1d0b)
|
case 'd': CASEMBC(0x10f) CASEMBC(0x111) CASEMBC(0x1e0b)
|
||||||
CASEMBC(0x1e11)
|
CASEMBC(0x1e0f) CASEMBC(0x1e11)
|
||||||
EMIT2('d'); EMITMBC(0x10f) EMITMBC(0x111) EMITMBC(0x1e0b)
|
EMIT2('d'); EMITMBC(0x10f) EMITMBC(0x111) EMITMBC(0x1e0b)
|
||||||
EMITMBC(0x01e0f) EMITMBC(0x1e11)
|
EMITMBC(0x1e0f) EMITMBC(0x1e11)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case 'e': case 0350: case 0351: case 0352: case 0353:
|
case 'e': case 0350: case 0351: case 0352: case 0353:
|
||||||
|
@@ -85,7 +85,7 @@ static int included_patches[] = {
|
|||||||
//779,
|
//779,
|
||||||
//778,
|
//778,
|
||||||
//777,
|
//777,
|
||||||
//776,
|
776,
|
||||||
775,
|
775,
|
||||||
774,
|
774,
|
||||||
//773,
|
//773,
|
||||||
|
Reference in New Issue
Block a user