annotate src/testdir/test_match_conceal.ok @ 7364:fe2f6b92d806 v7.4.987

commit https://github.com/vim/vim/commit/0d27f64f7188efef99062a3c5694027c12401670 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 28 22:05:28 2015 +0100 patch 7.4.987 Problem: Can't build with Ruby 1.9.2. Solution: Require Rub 2.0 for defining USE_TYPEDDATA.
author Christian Brabandt <cb@256bit.org>
date Mon, 28 Dec 2015 22:15:04 +0100
parents 1efa7c2b9368
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6947
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2 # This is a Test
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 Test 1: simple addmatch()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 # This is a Test
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 OK: g:attr[0]!=g:attr[1] && g:attr[1]==g:attr[2] && g:attr[1]==g:attr[3] && g:attr[1]==g:attr[4] && g:attr[0]==g:attr[5]
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 Test 2: simple addmatch() and conceal (should be: #XThisXisXaXTest)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 #XThisXisXaXTest
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 OK: g:attr[0]!=g:attr[1] && g:attr[1]==g:attr[2] && g:attr[1]==g:attr[3] && g:attr[1]==g:attr[4] && g:attr[0]==g:attr[5]
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 Test 3: addmatch() and conceallevel=3 (should be: #ThisisaTest)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 #ThisisaTest
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 OK: g:attr[0]==g:attr[1] && g:attr[1]==g:attr[2] && g:attr[1]==g:attr[3] && g:attr[1]==g:attr[4] && g:attr[0]!=g:attr[5]
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 Test 4: more match() (should be: #Thisisa Test)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 #Thisisa Test
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 OK: g:attr[0]==g:attr[1] && g:attr[1]==g:attr[2] && g:attr[0]!=g:attr[3] && g:attr[3]==g:attr[4] && g:attr[0]!=g:attr[5] && g:attr[3]!=g:attr[5]
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 Test 5/1: default conceal char (should be: # This is a Test)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 # This is a Test
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 OK: g:attr[0]!=g:attr[1] && g:attr[1]==g:attr[2] && g:attr[1]==g:attr[3] && g:attr[1]==g:attr[4] && g:attr[0]==g:attr[5]
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 Test 5/2: default conceal char (should be: #+This+is+a+Test)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 #+This+is+a+Test
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 OK: g:attr[0]!=g:attr[1] && g:attr[1]==g:attr[2] && g:attr[1]==g:attr[3] && g:attr[1]==g:attr[4] && g:attr[0]==g:attr[5]
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 Test 6/1: syn and match conceal (should be: #ZThisZisZaZTest)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 #ZThisZisZaZTest
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 OK: g:attr[0]!=g:attr[1] && g:attr[1]==g:attr[2] && g:attr[1]==g:attr[3] && g:attr[1]==g:attr[4] && g:attr[0]==g:attr[5]
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 Test 6/2: syn and match conceal (should be: #*This*is*a*Test)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33 #*This*is*a*Test
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 OK: g:attr[0]!=g:attr[1] && g:attr[1]==g:attr[2] && g:attr[1]==g:attr[3] && g:attr[1]==g:attr[4] && g:attr[0]==g:attr[5]
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36 Test 7/1: clear matches
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37 # This is a Test
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
38 OK: g:attr[0]==g:attr[1] && g:attr[0]==g:attr[2] && g:attr[0]==g:attr[3] && g:attr[0]==g:attr[4] && g:attr[0]==g:attr[5]
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
39 {'group': 'Conceal', 'pattern': '\%2l ', 'priority': 10, 'id': 10, 'conceal': 'Z'}
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
40
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
41 Test 7/2: reset match using setmatches()
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
42 #ZThisZisZaZTest
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
43 OK: g:attr[0]!=g:attr[1] && g:attr[1]==g:attr[2] && g:attr[1]==g:attr[3] && g:attr[1]==g:attr[4] && g:attr[0]==g:attr[5]
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
44
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
45 Test 8: using matchaddpos() (should be #Pis a Test
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
46 #Pis a Test
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
47 OK: g:attr[0]!=g:attr[1] && g:attr[1]!=g:attr[2] && g:attr[0]==g:attr[2] && g:attr[0]==g:attr[3] && g:attr[0]!=g:attr[4] && g:attr[0]!=g:attr[5] && g:attr[4]==g:attr[5]
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
48 {'group': 'Conceal', 'id': 11, 'priority': 10, 'pos1': [2, 2, 6], 'conceal': 'P'}
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
49
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
50 Test 9: match using multibyte conceal char (should be: #ˑThisˑisˑaˑTest)
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
51 #ˑThisˑisˑaˑTest
1efa7c2b9368 patch 7.4.792
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
52 OK: g:attr[0]!=g:attr[1] && g:attr[1]==g:attr[2] && g:attr[1]==g:attr[3] && g:attr[1]==g:attr[4] && g:attr[0]==g:attr[5]