mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
updated for version 7.3.1090
Problem: New regexp engine does not support \z1 .. \z9 and \z(. Solution: Implement the syntax submatches.
This commit is contained in:
@@ -55,7 +55,9 @@ typedef struct
|
|||||||
char_u reganch;
|
char_u reganch;
|
||||||
char_u *regmust;
|
char_u *regmust;
|
||||||
int regmlen;
|
int regmlen;
|
||||||
|
#ifdef FEAT_SYN_HL
|
||||||
char_u reghasz;
|
char_u reghasz;
|
||||||
|
#endif
|
||||||
char_u program[1]; /* actually longer.. */
|
char_u program[1]; /* actually longer.. */
|
||||||
} bt_regprog_T;
|
} bt_regprog_T;
|
||||||
|
|
||||||
@@ -88,6 +90,9 @@ typedef struct
|
|||||||
nfa_state_T *start;
|
nfa_state_T *start;
|
||||||
int has_zend; /* pattern contains \ze */
|
int has_zend; /* pattern contains \ze */
|
||||||
int has_backref; /* pattern contains \1 .. \9 */
|
int has_backref; /* pattern contains \1 .. \9 */
|
||||||
|
#ifdef FEAT_SYN_HL
|
||||||
|
int reghasz;
|
||||||
|
#endif
|
||||||
int nsubexp; /* number of () */
|
int nsubexp; /* number of () */
|
||||||
int nstate;
|
int nstate;
|
||||||
nfa_state_T state[0]; /* actually longer.. */
|
nfa_state_T state[0]; /* actually longer.. */
|
||||||
|
815
src/regexp_nfa.c
815
src/regexp_nfa.c
File diff suppressed because it is too large
Load Diff
@@ -728,6 +728,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1090,
|
||||||
/**/
|
/**/
|
||||||
1089,
|
1089,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user