summaryrefslogtreecommitdiff
path: root/src/regexp.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-02 15:55:55 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-02 15:55:55 +0200
commit69afb7bf0aef4e9b39acbdb7849dd9c44b1345c5 (patch)
treeee999b818c3de6b4bad4db36f2073877143f7d17 /src/regexp.h
parent5de820b916c38d95f6af7f4315f827764d587497 (diff)
downloadvim-git-69afb7bf0aef4e9b39acbdb7849dd9c44b1345c5.tar.gz
updated for version 7.3.1092v7.3.1092
Problem: Can't build with regexp debugging. NFA debug output shows wrong pattern. Solution: Fix debugging code for recent changes. Add the pattern to the program.
Diffstat (limited to 'src/regexp.h')
-rw-r--r--src/regexp.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/regexp.h b/src/regexp.h
index f44578d8f..9809b3c0f 100644
--- a/src/regexp.h
+++ b/src/regexp.h
@@ -86,13 +86,15 @@ typedef struct
regengine_T *engine;
unsigned regflags;
- regprog_T regprog;
- nfa_state_T *start;
+ nfa_state_T *start; /* points into state[] */
int has_zend; /* pattern contains \ze */
int has_backref; /* pattern contains \1 .. \9 */
#ifdef FEAT_SYN_HL
int reghasz;
#endif
+#ifdef DEBUG
+ char_u *pattern;
+#endif
int nsubexp; /* number of () */
int nstate;
nfa_state_T state[0]; /* actually longer.. */