annotate src/testdir/test44.in @ 4356:d67e292af6f9 v7.3.927

updated for version 7.3.927 Problem: Missing combining characters when putting text in a register. Solution: Include combining characters. (David B?rgin)
author Bram Moolenaar <bram@vim.org>
date Mon, 06 May 2013 05:50:28 +0200
parents 2067ed78d37c
children 923738744a60
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.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 :so mbyte.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 :set nocompatible encoding=utf-8 termencoding=latin1 viminfo+=nviminfo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 /^1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 /a*b\{2}c\+/e
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 x/\Md\*e\{2}f\+/e
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 x:set nomagic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 /g\*h\{2}i\+/e
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 x/\mj*k\{2}l\+/e
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 x/\vm*n{2}o+/e
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 x/\V^aa$
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 x:set magic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 /\v(a)(b)\2\1\1/e
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 x/\V[ab]\(\[xy]\)\1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 x:" Now search for multi-byte without composing char
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 /ม
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 x:" Now search for multi-byte with 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:" find word by change of word class
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 /ち\<カヨ\>は
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
24 x:" Test \%u, [\u] and friends
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
25 /\%u20ac
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
26 x/[\u4f7f\u5929]\+
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
27 x/\%U12345678
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
28 x/[\U1234abcd\u1234\uabcd]
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
29 x/\%d21879b
2974
59130cd78dfc updated for version 7.3.259
Bram Moolenaar <bram@vim.org>
parents: 24
diff changeset
30 x/ [[=A=]]* [[=B=]]* [[=C=]]* [[=D=]]* [[=E=]]* [[=F=]]* [[=G=]]* [[=H=]]* [[=I=]]* [[=J=]]* [[=K=]]* [[=L=]]* [[=M=]]* [[=N=]]* [[=O=]]* [[=P=]]* [[=Q=]]* [[=R=]]* [[=S=]]* [[=T=]]* [[=U=]]* [[=V=]]* [[=W=]]* [[=X=]]* [[=Y=]]* [[=Z=]]*/e
59130cd78dfc updated for version 7.3.259
Bram Moolenaar <bram@vim.org>
parents: 24
diff changeset
31 x/ [[=a=]]* [[=b=]]* [[=c=]]* [[=d=]]* [[=e=]]* [[=f=]]* [[=g=]]* [[=h=]]* [[=i=]]* [[=j=]]* [[=k=]]* [[=l=]]* [[=m=]]* [[=n=]]* [[=o=]]* [[=p=]]* [[=q=]]* [[=r=]]* [[=s=]]* [[=t=]]* [[=u=]]* [[=v=]]* [[=w=]]* [[=x=]]* [[=y=]]* [[=z=]]*/e
4049
2067ed78d37c updated for version 7.3.779
Bram Moolenaar <bram@vim.org>
parents: 2974
diff changeset
32 x:" Test backwards search from a multi-byte char
2067ed78d37c updated for version 7.3.779
Bram Moolenaar <bram@vim.org>
parents: 2974
diff changeset
33 /x
2067ed78d37c updated for version 7.3.779
Bram Moolenaar <bram@vim.org>
parents: 2974
diff changeset
34 x?.
4356
d67e292af6f9 updated for version 7.3.927
Bram Moolenaar <bram@vim.org>
parents: 4049
diff changeset
35 x:let @w=':%s#comb[i]nations#œ̄ṣ́m̥̄ᾱ̆́#g'
d67e292af6f9 updated for version 7.3.927
Bram Moolenaar <bram@vim.org>
parents: 4049
diff changeset
36 :@w
d67e292af6f9 updated for version 7.3.927
Bram Moolenaar <bram@vim.org>
parents: 4049
diff changeset
37 :?^1?,$w! test.out
19
a81bc802c17c updated for version 7.0011
vimboss
parents: 7
diff changeset
38 :e! test.out
a81bc802c17c updated for version 7.0011
vimboss
parents: 7
diff changeset
39 G:put =matchstr(\"אבגד\", \".\", 0, 2) " ב
a81bc802c17c updated for version 7.0011
vimboss
parents: 7
diff changeset
40 :put =matchstr(\"אבגד\", \"..\", 0, 2) " בג
a81bc802c17c updated for version 7.0011
vimboss
parents: 7
diff changeset
41 :put =matchstr(\"אבגד\", \".\", 0, 0) " א
a81bc802c17c updated for version 7.0011
vimboss
parents: 7
diff changeset
42 :put =matchstr(\"אבגד\", \".\", 4, -1) " ג
a81bc802c17c updated for version 7.0011
vimboss
parents: 7
diff changeset
43 :w!
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 :qa!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 1 a aa abb abbccc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 2 d dd dee deefff
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 3 g gg ghh ghhiii
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 4 j jj jkk jkklll
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 5 m mm mnn mnnooo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 6 x ^aa$ x
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 7 (a)(b) abbaa
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 8 axx [ab]xx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 9 หม่x อมx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 a อมx หม่x
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 b ちカヨは
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
58 c x ¬€x
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
59 d 天使x
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
60 e y
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
61 f z
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
62 g a啷bb
2974
59130cd78dfc updated for version 7.3.259
Bram Moolenaar <bram@vim.org>
parents: 24
diff changeset
63 h AÀÁÂÃÄÅĀĂĄǍǞǠẢ BḂḆ CÇĆĈĊČ DĎĐḊḎḐ EÈÉÊËĒĔĖĘĚẺẼ FḞ GĜĞĠĢǤǦǴḠ HĤĦḢḦḨ IÌÍÎÏĨĪĬĮİǏỈ JĴ KĶǨḰḴ LĹĻĽĿŁḺ MḾṀ NÑŃŅŇṄṈ OÒÓÔÕÖØŌŎŐƠǑǪǬỎ PṔṖ Q RŔŖŘṘṞ SŚŜŞŠṠ TŢŤŦṪṮ UÙÚÛÜŨŪŬŮŰŲƯǓỦ VṼ WŴẀẂẄẆ XẊẌ YÝŶŸẎỲỶỸ ZŹŻŽƵẐẔ
59130cd78dfc updated for version 7.3.259
Bram Moolenaar <bram@vim.org>
parents: 24
diff changeset
64 i aàáâãäåāăąǎǟǡả bḃḇ cçćĉċč dďđḋḏḑ eèéêëēĕėęěẻẽ fḟ gĝğġģǥǧǵḡ hĥħḣḧḩẖ iìíîïĩīĭįǐỉ jĵǰ kķǩḱḵ lĺļľŀłḻ mḿṁ nñńņňʼnṅṉ oòóôõöøōŏőơǒǫǭỏ pṕṗ q rŕŗřṙṟ sśŝşšṡ tţťŧṫṯẗ uùúûüũūŭůűųưǔủ vṽ wŵẁẃẅẇẘ xẋẍ yýÿŷẏẙỳỷỹ zźżžƶẑẕ
4049
2067ed78d37c updated for version 7.3.779
Bram Moolenaar <bram@vim.org>
parents: 2974
diff changeset
65 j 0123❤x
4356
d67e292af6f9 updated for version 7.3.927
Bram Moolenaar <bram@vim.org>
parents: 4049
diff changeset
66 k combinations