diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-07-25 12:00:08 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-07-25 12:00:08 +0200 |
commit | 36622014c640ad5df19269e63ad037c104efce9c (patch) | |
tree | 3f5cde7423587bd69dcdb2b5b326580129e4ef68 /src/nvim/testdir/test_regexp_latin.vim | |
parent | d1faf900b1c682c0d5c20854fcd8d6d02a12200c (diff) | |
parent | 0925afcfcfd3fb024a35d10ee8f584b67bdc9000 (diff) | |
download | rneovim-36622014c640ad5df19269e63ad037c104efce9c.tar.gz rneovim-36622014c640ad5df19269e63ad037c104efce9c.tar.bz2 rneovim-36622014c640ad5df19269e63ad037c104efce9c.zip |
Merge #10596 'vim-patch:8.1.{899,903,905,907,908,910,913,1746}'
close #9930
close #10051
Diffstat (limited to 'src/nvim/testdir/test_regexp_latin.vim')
-rw-r--r-- | src/nvim/testdir/test_regexp_latin.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_regexp_latin.vim b/src/nvim/testdir/test_regexp_latin.vim index de209fa9ec..b5e99b0ed3 100644 --- a/src/nvim/testdir/test_regexp_latin.vim +++ b/src/nvim/testdir/test_regexp_latin.vim @@ -85,3 +85,16 @@ func Test_multi_failure() call assert_fails('/a\{a}', 'E870:') set re=0 endfunc + +func Test_recursive_addstate() + " This will call addstate() recursively until it runs into the limit. + let lnum = search('\v((){328}){389}') + call assert_equal(0, lnum) +endfunc + +func Test_out_of_memory() + new + s/^/,n + " This will be slow... + call assert_fails('call search("\\v((n||<)+);")', 'E363:') +endfunc |