diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2022-09-06 08:57:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-06 08:57:53 +0200 |
| commit | 4bf005e9fdfb57397475b2663a3651faa83886ff (patch) | |
| tree | 2b690743460445cdfdcc215c0866ce2275e82290 /runtime/indent/testdir | |
| parent | 5b7213ad7fdac47345b7d9d9a008db23eed4d17c (diff) | |
| download | rneovim-4bf005e9fdfb57397475b2663a3651faa83886ff.tar.gz rneovim-4bf005e9fdfb57397475b2663a3651faa83886ff.tar.bz2 rneovim-4bf005e9fdfb57397475b2663a3651faa83886ff.zip | |
vim-patch:partial 0daafaa7d99e (#20083)
Update runtime files
https://github.com/vim/vim/commit/0daafaa7d99ef500f76b1b12f5fe8153e2fcaea0
skip vim9script ftplugin
create userfunc.txt from Neovim content (skip section 3, needs 9.0.0379)
Diffstat (limited to 'runtime/indent/testdir')
| -rw-r--r-- | runtime/indent/testdir/runtest.vim | 15 | ||||
| -rw-r--r-- | runtime/indent/testdir/vim.in | 7 | ||||
| -rw-r--r-- | runtime/indent/testdir/vim.ok | 7 |
3 files changed, 27 insertions, 2 deletions
diff --git a/runtime/indent/testdir/runtest.vim b/runtime/indent/testdir/runtest.vim index 6bbd33cacd..fa4e16e381 100644 --- a/runtime/indent/testdir/runtest.vim +++ b/runtime/indent/testdir/runtest.vim @@ -11,6 +11,7 @@ syn on set nowrapscan set report=9999 set modeline +set debug=throw au! SwapExists * call HandleSwapExists() func HandleSwapExists() @@ -84,7 +85,12 @@ for fname in glob('testdir/*.in', 1, 1) exe start + 1 if pattern == '' - exe 'normal =' . (end - 1) . 'G' + try + exe 'normal =' . (end - 1) . 'G' + catch + call append(indent_at, 'ERROR: ' . v:exception) + let failed = 1 + endtry else let lnum = search(pattern) if lnum <= 0 @@ -99,7 +105,12 @@ for fname in glob('testdir/*.in', 1, 1) else exe lnum - 1 endif - normal == + try + normal == + catch + call append(indent_at, 'ERROR: ' . v:exception) + let failed = 1 + endtry endif endif endwhile diff --git a/runtime/indent/testdir/vim.in b/runtime/indent/testdir/vim.in index 873045bc2c..5eb262f50a 100644 --- a/runtime/indent/testdir/vim.in +++ b/runtime/indent/testdir/vim.in @@ -36,6 +36,13 @@ let t = [ \ }, \ ] +def Func() + var d = dd + ->extend({ + }) + eval 0 +enddef + " END_INDENT " START_INDENT diff --git a/runtime/indent/testdir/vim.ok b/runtime/indent/testdir/vim.ok index 8e70abe619..932eebef43 100644 --- a/runtime/indent/testdir/vim.ok +++ b/runtime/indent/testdir/vim.ok @@ -36,6 +36,13 @@ let t = [ \ }, \ ] +def Func() + var d = dd + ->extend({ + }) + eval 0 +enddef + " END_INDENT " START_INDENT |