diff options
| author | Marco Hinz <mh.codebro@gmail.com> | 2015-07-21 14:02:14 +0200 | 
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2015-08-09 21:09:28 -0400 | 
| commit | 3df37a842488182a14941acbcf7901a87528f153 (patch) | |
| tree | f2e4d71d5e1e54497d5cce52a05a72b84b47fcdd /src | |
| parent | ef6451a11329c2e60764e9e17fadcec4e82f08f3 (diff) | |
| download | rneovim-3df37a842488182a14941acbcf7901a87528f153.tar.gz rneovim-3df37a842488182a14941acbcf7901a87528f153.tar.bz2 rneovim-3df37a842488182a14941acbcf7901a87528f153.zip | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/nvim/regexp.c | 6 | ||||
| -rw-r--r-- | src/nvim/regexp_nfa.c | 10 | ||||
| -rw-r--r-- | src/nvim/version.c | 2 | 
3 files changed, 9 insertions, 9 deletions
| diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c index 4724a07895..e2c4b590d0 100644 --- a/src/nvim/regexp.c +++ b/src/nvim/regexp.c @@ -961,10 +961,10 @@ static void reg_equi_class(int c)        REGMBC(0x107) REGMBC(0x109) REGMBC(0x10b)        REGMBC(0x10d)        return; -    case 'd': CASEMBC(0x10f) CASEMBC(0x111) CASEMBC(0x1d0b) -      CASEMBC(0x1e11) +    case 'd': CASEMBC(0x10f) CASEMBC(0x111) CASEMBC(0x1e0b) +      CASEMBC(0x1e0f) CASEMBC(0x1e11)        regmbc('d'); REGMBC(0x10f) REGMBC(0x111) -      REGMBC(0x1e0b) REGMBC(0x01e0f) REGMBC(0x1e11) +      REGMBC(0x1e0b) REGMBC(0x1e0f) REGMBC(0x1e11)        return;      case 'e': case '\350': case '\351': case '\352': case '\353':        CASEMBC(0x113) CASEMBC(0x115) CASEMBC(0x117) CASEMBC(0x119) diff --git a/src/nvim/regexp_nfa.c b/src/nvim/regexp_nfa.c index 227737e7ff..484dfe1e1f 100644 --- a/src/nvim/regexp_nfa.c +++ b/src/nvim/regexp_nfa.c @@ -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)  { -#define EMIT2(c)    EMIT(c); EMIT(NFA_CONCAT); -# define EMITMBC(c) EMIT(c); EMIT(NFA_CONCAT); +#define EMIT2(c)   EMIT(c); EMIT(NFA_CONCAT); +#define EMITMBC(c) EMIT(c); EMIT(NFA_CONCAT);    if (enc_utf8 || STRCMP(p_enc, "latin1") == 0        || STRCMP(p_enc, "iso-8859-15") == 0) { @@ -908,10 +908,10 @@ static void nfa_emit_equi_class(int c)        EMITMBC(0x10b) EMITMBC(0x10d)        return; -    case 'd': CASEMBC(0x10f) CASEMBC(0x111) CASEMBC(0x1d0b) -      CASEMBC(0x1e11) +    case 'd': CASEMBC(0x10f) CASEMBC(0x111) CASEMBC(0x1e0b) +      CASEMBC(0x1e0f) CASEMBC(0x1e11)        EMIT2('d'); EMITMBC(0x10f) EMITMBC(0x111) EMITMBC(0x1e0b) -      EMITMBC(0x01e0f) EMITMBC(0x1e11) +      EMITMBC(0x1e0f) EMITMBC(0x1e11)        return;      case 'e': case 0350: case 0351: case 0352: case 0353: diff --git a/src/nvim/version.c b/src/nvim/version.c index 3962cb7729..991d4b9264 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -85,7 +85,7 @@ static int included_patches[] = {    //779,    //778,    //777, -  //776, +  776,    775,    774,    //773, | 
