diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-11-05 15:51:26 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-11-05 16:09:21 +0800 |
| commit | 78e69412acb481c7ad56e68c541f5c5383992d5b (patch) | |
| tree | bc96dfa6fca4e26ea661eb3f7326ff660a9b012d /src/nvim/testdir | |
| parent | 45a3e7f6694c66c3577a47c7ff1fb8bfcc2ab7be (diff) | |
| download | rneovim-78e69412acb481c7ad56e68c541f5c5383992d5b.tar.gz rneovim-78e69412acb481c7ad56e68c541f5c5383992d5b.tar.bz2 rneovim-78e69412acb481c7ad56e68c541f5c5383992d5b.zip | |
vim-patch:8.2.4688: new regexp engine does not give an error for "\%v"
Problem: New regexp engine does not give an error for "\%v".
Solution: Check for a value argument. (issue vim/vim#10079)
https://github.com/vim/vim/commit/91ff3d4f52a55a7c37a52aaad524cd9dd12efae4
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_regexp_latin.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_regexp_latin.vim b/src/nvim/testdir/test_regexp_latin.vim index 2a9a0e9d50..2671313997 100644 --- a/src/nvim/testdir/test_regexp_latin.vim +++ b/src/nvim/testdir/test_regexp_latin.vim @@ -105,6 +105,18 @@ func Test_multi_failure() set re=0 endfunc +func Test_column_failure() + set re=1 + call assert_fails('/\%v', 'E71:') + call assert_fails('/\%c', 'E71:') + call assert_fails('/\%l', 'E71:') + set re=2 + call assert_fails('/\%v', 'E1273:') + call assert_fails('/\%c', 'E1273:') + call assert_fails('/\%l', 'E1273:') + set re=0 +endfunc + func Test_recursive_addstate() throw 'skipped: TODO: ' " This will call addstate() recursively until it runs into the limit. |