Re: NFA regexp engine problem (multi-line regexp)
- Lech Lorens wrote:
> I have a list of files grouped by file extension. I am trying to createI can reproduce it by searching for the pattern:
> a fold for each of the groups. For this purpose I created the following
> Vim function:
> function! FoldByExtension()
> let s:searchSave = @/
> let s:wrapscanSave = &ws
> set nowrapscan
> normal zE
> while 1
> normal nj
> catch /E385/
> let &ws = s:wrapscanSave
> let @/ = s:searchSave
> With re=1 Vim correctly processes the following list:
> creating 3 folds, 3 elements each. With re=2 it creates a single fold
> containing all the lines.
GALAHAD: No, please. Please! I can defeat them! There's only a hundred.
GIRLS: He will beat us easily. We haven't a chance.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- Bram@... -- 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 ///
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
For more options, visit https://groups.google.com/groups/opt_out.