annotate src/testdir/test53.in @ 4809:4d7e3df04256 v7.3.1151

updated for version 7.3.1151 Problem: New regexp engine: Slow when a look-behind match is followed by a zero-width match. Solution: Postpone the look-behind match more often.
author Bram Moolenaar <bram@vim.org>
date Sat, 08 Jun 2013 23:26:27 +0200
parents 34aa94a421b7
children 8875401008da
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
853
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
1 Tests for string and html text objects. vim: set ft=vim :
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
2
19
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
3 Note that the end-of-line moves the cursor to the next test line.
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
4
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
5 Also test match() and matchstr()
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
6
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
7 STARTTEST
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
8 :so small.vim
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
9 /^start:/
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
10 da"
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
11 0va'a'rx
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
12 02f`da`
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
13 0fXdi"
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
14 03f'vi'ry
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
15 :set quoteescape=+*-
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
16 di`
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
17 $F"va"oha"i"rz
853
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
18 :"
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
19 /^<begin
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
20 jfXdit
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
21 0fXdit
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
22 fXdat
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
23 0fXdat
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
24 :"
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
25 :put =matchstr(\"abcd\", \".\", 0, 2) " b
19
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
26 :put =matchstr(\"abcd\", \"..\", 0, 2) " bc
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
27 :put =matchstr(\"abcd\", \".\", 2, 0) " c (zero and negative -> first match)
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
28 :put =matchstr(\"abcd\", \".\", 0, -1) " a
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
29 :put =match(\"abcd\", \".\", 0, 5) " -1
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
30 :put =match(\"abcd\", \".\", 0, -1) " 0
3701
9f48a5432997 updated for version 7.3.610
Bram Moolenaar <bram@vim.org>
parents: 853
diff changeset
31 /^foobar
9f48a5432997 updated for version 7.3.610
Bram Moolenaar <bram@vim.org>
parents: 853
diff changeset
32 gncsearchmatch/one\_s*two\_s
9f48a5432997 updated for version 7.3.610
Bram Moolenaar <bram@vim.org>
parents: 853
diff changeset
33 :1
9f48a5432997 updated for version 7.3.610
Bram Moolenaar <bram@vim.org>
parents: 853
diff changeset
34 gnd
9f48a5432997 updated for version 7.3.610
Bram Moolenaar <bram@vim.org>
parents: 853
diff changeset
35 /[a]bcdx
9f48a5432997 updated for version 7.3.610
Bram Moolenaar <bram@vim.org>
parents: 853
diff changeset
36 :1
3774
1810ee914648 updated for version 7.3.645
Bram Moolenaar <bram@vim.org>
parents: 3701
diff changeset
37 2gnd/join
1810ee914648 updated for version 7.3.645
Bram Moolenaar <bram@vim.org>
parents: 3701
diff changeset
38 /$
1810ee914648 updated for version 7.3.645
Bram Moolenaar <bram@vim.org>
parents: 3701
diff changeset
39 0gnd
1810ee914648 updated for version 7.3.645
Bram Moolenaar <bram@vim.org>
parents: 3701
diff changeset
40 /\>\zs
1810ee914648 updated for version 7.3.645
Bram Moolenaar <bram@vim.org>
parents: 3701
diff changeset
41 0gnd/^
1810ee914648 updated for version 7.3.645
Bram Moolenaar <bram@vim.org>
parents: 3701
diff changeset
42 gnd$h/\zs
3778
29fe4e5c1db1 updated for version 7.3.647
Bram Moolenaar <bram@vim.org>
parents: 3774
diff changeset
43 gnd/[u]niquepattern/s
29fe4e5c1db1 updated for version 7.3.647
Bram Moolenaar <bram@vim.org>
parents: 3774
diff changeset
44 vlgnd
3857
34aa94a421b7 updated for version 7.3.685
Bram Moolenaar <bram@vim.org>
parents: 3778
diff changeset
45 /mother
34aa94a421b7 updated for version 7.3.685
Bram Moolenaar <bram@vim.org>
parents: 3778
diff changeset
46 :set selection=exclusive
34aa94a421b7 updated for version 7.3.685
Bram Moolenaar <bram@vim.org>
parents: 3778
diff changeset
47 $cgNmongoose
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
48 :/^start:/,/^end:/wq! test.out
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
49 ENDTEST
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
50
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
51 start: "wo\"rd\\" foo
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
52 'foo' 'bar' 'piep'
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
53 bla bla `quote` blah
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
54 out " in "noXno"
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
55 "'" 'blah' rep 'buh'
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
56 bla `s*`d-`+++`l**` b`la
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
57 voo "nah" sdf " asdf" sdf " sdf" sd
853
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
58
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
59 <begin>
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
60 -<b>asdf<i>Xasdf</i>asdf</b>-
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
61 -<b>asdX<i>a<i />sdf</i>asdf</b>-
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
62 -<b>asdf<i>Xasdf</i>asdf</b>-
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
63 -<b>asdX<i>as<b />df</i>asdf</b>-
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
64 </begin>
3701
9f48a5432997 updated for version 7.3.610
Bram Moolenaar <bram@vim.org>
parents: 853
diff changeset
65 SEARCH:
9f48a5432997 updated for version 7.3.610
Bram Moolenaar <bram@vim.org>
parents: 853
diff changeset
66 foobar
9f48a5432997 updated for version 7.3.610
Bram Moolenaar <bram@vim.org>
parents: 853
diff changeset
67 one
9f48a5432997 updated for version 7.3.610
Bram Moolenaar <bram@vim.org>
parents: 853
diff changeset
68 two
9f48a5432997 updated for version 7.3.610
Bram Moolenaar <bram@vim.org>
parents: 853
diff changeset
69 abcdx | abcdx | abcdx
3774
1810ee914648 updated for version 7.3.645
Bram Moolenaar <bram@vim.org>
parents: 3701
diff changeset
70 join
1810ee914648 updated for version 7.3.645
Bram Moolenaar <bram@vim.org>
parents: 3701
diff changeset
71 lines
1810ee914648 updated for version 7.3.645
Bram Moolenaar <bram@vim.org>
parents: 3701
diff changeset
72 zero width pattern
1810ee914648 updated for version 7.3.645
Bram Moolenaar <bram@vim.org>
parents: 3701
diff changeset
73 delete first and last chars
3778
29fe4e5c1db1 updated for version 7.3.647
Bram Moolenaar <bram@vim.org>
parents: 3774
diff changeset
74 uniquepattern uniquepattern
3857
34aa94a421b7 updated for version 7.3.685
Bram Moolenaar <bram@vim.org>
parents: 3778
diff changeset
75 my very excellent mother just served us nachos
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
76 end: