1
0
forked from aniani/vim

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:
Bram Moolenaar
2013-06-01 23:02:54 +02:00
parent 0418811869
commit efb23f26e8
3 changed files with 597 additions and 225 deletions

View File

@@ -55,7 +55,9 @@ typedef struct
char_u reganch;
char_u *regmust;
int regmlen;
#ifdef FEAT_SYN_HL
char_u reghasz;
#endif
char_u program[1]; /* actually longer.. */
} bt_regprog_T;
@@ -88,6 +90,9 @@ typedef struct
nfa_state_T *start;
int has_zend; /* pattern contains \ze */
int has_backref; /* pattern contains \1 .. \9 */
#ifdef FEAT_SYN_HL
int reghasz;
#endif
int nsubexp; /* number of () */
int nstate;
nfa_state_T state[0]; /* actually longer.. */