diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-11-05 14:27:36 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-11-05 14:27:36 +0100 |
commit | fda3729a064d6466cec6ac83dd1bfcc437ea4cc9 (patch) | |
tree | 7642145192f29ec2050ac8e9cc890ddc353615af /runtime | |
parent | 4f7e821f26019c14f4470deb0867c919548d5cd5 (diff) | |
download | vim-git-fda3729a064d6466cec6ac83dd1bfcc437ea4cc9.tar.gz |
updated for version 7.4.497v7.4.497
Problem: With some regexp patterns the NFA engine uses many states and
becomes very slow. To the user it looks like Vim freezes.
Solution: When the number of states reaches a limit fall back to the old
engine. (Christian Brabandt)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/options.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index b50711c69..534ef449f 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -5626,6 +5626,10 @@ A jump table for the options with a short description can be found at |Q_op|. Note that when using the NFA engine and the pattern contains something that is not supported the pattern will not match. This is only useful for debugging the regexp engine. + Using automatic selection enables Vim to switch the engine, if the + default engine becomes too costly. E.g., when the NFA engine uses too + many states. This should prevent Vim from hanging on a combination of + a complex pattern with long text. *'relativenumber'* *'rnu'* *'norelativenumber'* *'nornu'* 'relativenumber' 'rnu' boolean (default off) |