mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.4.008
Problem: New regexp engine can't be interrupted. Solution: Check for CTRL-C pressed. (Yasuhiro Matsumoto)
This commit is contained in:
parent
74cd624fde
commit
41f1205fef
@ -4311,8 +4311,8 @@ regmatch(scan)
|
|||||||
*/
|
*/
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
/* Some patterns may cause a long time to match, even though they are not
|
/* Some patterns may take a long time to match, e.g., "\([a-z]\+\)\+Q".
|
||||||
* illegal. E.g., "\([a-z]\+\)\+Q". Allow breaking them with CTRL-C. */
|
* Allow interrupting them with CTRL-C. */
|
||||||
fast_breakcheck();
|
fast_breakcheck();
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
@ -5089,6 +5089,12 @@ nfa_regmatch(prog, start, submatch, m)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
/* Some patterns may take a long time to match, especially when using
|
||||||
|
* recursive_regmatch(). Allow interrupting them with CTRL-C. */
|
||||||
|
fast_breakcheck();
|
||||||
|
if (got_int)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
nfa_match = FALSE;
|
nfa_match = FALSE;
|
||||||
|
|
||||||
/* Allocate memory for the lists of nodes. */
|
/* Allocate memory for the lists of nodes. */
|
||||||
|
@ -727,6 +727,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 */
|
||||||
|
/**/
|
||||||
|
8,
|
||||||
/**/
|
/**/
|
||||||
7,
|
7,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user