| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.008 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.4.008 |
| Problem: New regexp engine can't be interrupted. |
| Solution: Check for CTRL-C pressed. (Yasuhiro Matsumoto) |
| Files: src/regexp_nfa.c, src/regexp.c |
| |
| |
| |
| |
| |
| *** 5089,5094 **** |
| --- 5089,5100 ---- |
| return FALSE; |
| } |
| #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; |
| |
| /* Allocate memory for the lists of nodes. */ |
| |
| |
| |
| *** 4311,4318 **** |
| */ |
| for (;;) |
| { |
| ! /* Some patterns may cause a long time to match, even though they are not |
| ! * illegal. E.g., "\([a-z]\+\)\+Q". Allow breaking them with CTRL-C. */ |
| fast_breakcheck(); |
| |
| #ifdef DEBUG |
| --- 4311,4318 ---- |
| */ |
| for (;;) |
| { |
| ! /* Some patterns may take a long time to match, e.g., "\([a-z]\+\)\+Q". |
| ! * Allow interrupting them with CTRL-C. */ |
| fast_breakcheck(); |
| |
| #ifdef DEBUG |
| |
| |
| |
| *** 729,730 **** |
| --- 729,732 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 8, |
| /**/ |
| |
| -- |
| hundred-and-one symptoms of being an internet addict: |
| 124. You begin conversations with, "Who is your internet service provider?" |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ an exciting new programming language -- http://www.Zimbu.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |