annotate src/testdir/test56.in @ 5336:c514693882b9 v7.4.021

updated for version 7.4.021 Problem: NFA regexp: Using \ze in one branch which doesn't match may cause end of another branch to be wrong. (William Fugh) Solution: Set end position if it wasn't set yet.
author Bram Moolenaar <bram@vim.org>
date Thu, 05 Sep 2013 21:15:44 +0200
parents b63792dadc23
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
271
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
1 Test for script-local function. vim: set ft=vim :
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
2
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
3 STARTTEST
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
4 :so small.vim
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
5 :"
959
ea15087a42cd updated for version 7.0-085
vimboss
parents: 271
diff changeset
6 :set nocp viminfo+=nviminfo
271
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
7 :/^start:/+1,/^end:/-1w! Xtest.vim
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
8 :source Xtest.vim
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
9 _x
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
10 :$-1,$wq! test.out
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
11 ENDTEST
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
12
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
13 start:
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
14 fun <SID>DoLast()
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
15 call append(line('$'), "last line")
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
16 endfun
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
17 fun s:DoNothing()
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
18 call append(line('$'), "nothing line")
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
19 endfun
1405
b63792dadc23 updated for version 7.1-120
vimboss
parents: 959
diff changeset
20 nnoremap <buffer> _x :call <SID>DoNothing()<bar>call <SID>DoLast()<bar>delfunc <SID>DoNothing<bar>delfunc <SID>DoLast<cr>
271
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
21 end: