Mercurial > vim
comparison runtime/doc/eval.txt @ 12722:7749260f261c v8.0.1239
patch 8.0.1239: cannot use a lambda for the skip argument to searchpair()
commit https://github.com/vim/vim/commit/48570488f17e397183ea7d5c7ca67d6e4ffb013d
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Oct 30 21:48:41 2017 +0100
patch 8.0.1239: cannot use a lambda for the skip argument to searchpair()
Problem: Cannot use a lambda for the skip argument to searchpair().
Solution: Evaluate a partial, funcref and lambda. (LemonBoy, closes https://github.com/vim/vim/issues/1454,
closes #2265)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 30 Oct 2017 22:00:05 +0100 |
parents | 351cf7c67bbe |
children | 3b26420fc639 |
comparison
equal
deleted
inserted
replaced
12721:e6b964b3856d | 12722:7749260f261c |
---|---|
6782 match is to be skipped. E.g., because it is inside a comment | 6782 match is to be skipped. E.g., because it is inside a comment |
6783 or a string. | 6783 or a string. |
6784 When {skip} is omitted or empty, every match is accepted. | 6784 When {skip} is omitted or empty, every match is accepted. |
6785 When evaluating {skip} causes an error the search is aborted | 6785 When evaluating {skip} causes an error the search is aborted |
6786 and -1 returned. | 6786 and -1 returned. |
6787 {skip} can be a string, a lambda, a funcref or a partial. | |
6787 | 6788 |
6788 For {stopline} and {timeout} see |search()|. | 6789 For {stopline} and {timeout} see |search()|. |
6789 | 6790 |
6790 The value of 'ignorecase' is used. 'magic' is ignored, the | 6791 The value of 'ignorecase' is used. 'magic' is ignored, the |
6791 patterns are used like it's on. | 6792 patterns are used like it's on. |