annotate src/testdir/test44.in @ 21468:df10f1df515d

Added tag v8.2.1284 for changeset 49072a858baf495b5c8f3f84799057c135a54400
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 Jul 2020 20:15:04 +0200
parents c154fbd3004f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 Tests for regexp with multi-byte encoding and various magic settings.
19
a81bc802c17c updated for version 7.0011
vimboss
parents: 7
diff changeset
2 Test matchstr() with a count and multi-byte chars.
5351
923738744a60 updated for version 7.4.028
Bram Moolenaar <bram@vim.org>
parents: 4356
diff changeset
3 See test99 for exactly the same test with re=2.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 :so mbyte.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 :set nocompatible encoding=utf-8 termencoding=latin1 viminfo+=nviminfo
5351
923738744a60 updated for version 7.4.028
Bram Moolenaar <bram@vim.org>
parents: 4356
diff changeset
8 :set re=1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 /^1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 /a*b\{2}c\+/e
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 x/\Md\*e\{2}f\+/e
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 x:set nomagic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 /g\*h\{2}i\+/e
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 x/\mj*k\{2}l\+/e
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 x/\vm*n{2}o+/e
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 x/\V^aa$
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 x:set magic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 /\v(a)(b)\2\1\1/e
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 x/\V[ab]\(\[xy]\)\1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 x:" Now search for multi-byte without composing char
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 /ม
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 x:" Now search for multi-byte with composing char
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 /ม่
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 x:" find word by change of word class
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 /ち\<カヨ\>は
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
26 x:" Test \%u, [\u] and friends
6765
ec46a5ca1b51 patch 7.4.704
Bram Moolenaar <bram@vim.org>
parents: 6620
diff changeset
27 :" c
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
28 /\%u20ac
6765
ec46a5ca1b51 patch 7.4.704
Bram Moolenaar <bram@vim.org>
parents: 6620
diff changeset
29 x:" d
ec46a5ca1b51 patch 7.4.704
Bram Moolenaar <bram@vim.org>
parents: 6620
diff changeset
30 /[\u4f7f\u5929]\+
ec46a5ca1b51 patch 7.4.704
Bram Moolenaar <bram@vim.org>
parents: 6620
diff changeset
31 x:" e
ec46a5ca1b51 patch 7.4.704
Bram Moolenaar <bram@vim.org>
parents: 6620
diff changeset
32 /\%U12345678
ec46a5ca1b51 patch 7.4.704
Bram Moolenaar <bram@vim.org>
parents: 6620
diff changeset
33 x:" f
ec46a5ca1b51 patch 7.4.704
Bram Moolenaar <bram@vim.org>
parents: 6620
diff changeset
34 /[\U1234abcd\u1234\uabcd]
ec46a5ca1b51 patch 7.4.704
Bram Moolenaar <bram@vim.org>
parents: 6620
diff changeset
35 x:" g
ec46a5ca1b51 patch 7.4.704
Bram Moolenaar <bram@vim.org>
parents: 6620
diff changeset
36 /\%d21879b
ec46a5ca1b51 patch 7.4.704
Bram Moolenaar <bram@vim.org>
parents: 6620
diff changeset
37 x:" j Test backwards search from a multi-byte char
4049
2067ed78d37c updated for version 7.3.779
Bram Moolenaar <bram@vim.org>
parents: 2974
diff changeset
38 /x
2067ed78d37c updated for version 7.3.779
Bram Moolenaar <bram@vim.org>
parents: 2974
diff changeset
39 x?.
6765
ec46a5ca1b51 patch 7.4.704
Bram Moolenaar <bram@vim.org>
parents: 6620
diff changeset
40 x:" k
ec46a5ca1b51 patch 7.4.704
Bram Moolenaar <bram@vim.org>
parents: 6620
diff changeset
41 :let @w=':%s#comb[i]nations#œ̄ṣ́m̥̄ᾱ̆́#g'
4356
d67e292af6f9 updated for version 7.3.927
Bram Moolenaar <bram@vim.org>
parents: 4049
diff changeset
42 :@w
7404
fb61ce5915fc commit https://github.com/vim/vim/commit/96c664af27ec9535f2c3cd9b889faad3e9460ad6
Christian Brabandt <cb@256bit.org>
parents: 6765
diff changeset
43 :"
fb61ce5915fc commit https://github.com/vim/vim/commit/96c664af27ec9535f2c3cd9b889faad3e9460ad6
Christian Brabandt <cb@256bit.org>
parents: 6765
diff changeset
44 :" l Test what 7.3.192 fixed
fb61ce5915fc commit https://github.com/vim/vim/commit/96c664af27ec9535f2c3cd9b889faad3e9460ad6
Christian Brabandt <cb@256bit.org>
parents: 6765
diff changeset
45 /^l
fb61ce5915fc commit https://github.com/vim/vim/commit/96c664af27ec9535f2c3cd9b889faad3e9460ad6
Christian Brabandt <cb@256bit.org>
parents: 6765
diff changeset
46 :s/ \?/ /g
4356
d67e292af6f9 updated for version 7.3.927
Bram Moolenaar <bram@vim.org>
parents: 4049
diff changeset
47 :?^1?,$w! test.out
19
a81bc802c17c updated for version 7.0011
vimboss
parents: 7
diff changeset
48 :e! test.out
a81bc802c17c updated for version 7.0011
vimboss
parents: 7
diff changeset
49 G:put =matchstr(\"אבגד\", \".\", 0, 2) " ב
a81bc802c17c updated for version 7.0011
vimboss
parents: 7
diff changeset
50 :put =matchstr(\"אבגד\", \"..\", 0, 2) " בג
a81bc802c17c updated for version 7.0011
vimboss
parents: 7
diff changeset
51 :put =matchstr(\"אבגד\", \".\", 0, 0) " א
a81bc802c17c updated for version 7.0011
vimboss
parents: 7
diff changeset
52 :put =matchstr(\"אבגד\", \".\", 4, -1) " ג
6620
578c16fbab66 updated for version 7.4.636
Bram Moolenaar <bram@vim.org>
parents: 5351
diff changeset
53 :new
578c16fbab66 updated for version 7.4.636
Bram Moolenaar <bram@vim.org>
parents: 5351
diff changeset
54 :$put =['dog(a', 'cat(']
578c16fbab66 updated for version 7.4.636
Bram Moolenaar <bram@vim.org>
parents: 5351
diff changeset
55 /(/e+
578c16fbab66 updated for version 7.4.636
Bram Moolenaar <bram@vim.org>
parents: 5351
diff changeset
56 "ayn:bd!
578c16fbab66 updated for version 7.4.636
Bram Moolenaar <bram@vim.org>
parents: 5351
diff changeset
57 :$put =''
578c16fbab66 updated for version 7.4.636
Bram Moolenaar <bram@vim.org>
parents: 5351
diff changeset
58 G"ap
19
a81bc802c17c updated for version 7.0011
vimboss
parents: 7
diff changeset
59 :w!
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 :qa!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 1 a aa abb abbccc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 2 d dd dee deefff
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 3 g gg ghh ghhiii
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 4 j jj jkk jkklll
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 5 m mm mnn mnnooo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 6 x ^aa$ x
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 7 (a)(b) abbaa
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 8 axx [ab]xx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 9 หม่x อมx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 a อมx หม่x
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 b ちカヨは
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
74 c x ¬€x
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
75 d 天使x
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
76 e y
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
77 f z
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
78 g a啷bb
4049
2067ed78d37c updated for version 7.3.779
Bram Moolenaar <bram@vim.org>
parents: 2974
diff changeset
79 j 0123❤x
4356
d67e292af6f9 updated for version 7.3.927
Bram Moolenaar <bram@vim.org>
parents: 4049
diff changeset
80 k combinations
7404
fb61ce5915fc commit https://github.com/vim/vim/commit/96c664af27ec9535f2c3cd9b889faad3e9460ad6
Christian Brabandt <cb@256bit.org>
parents: 6765
diff changeset
81 l äö üᾱ̆́