annotate src/testdir/test_match_conceal.ok @ 8364:991d8fd4d841 v7.4.1474

commit https://github.com/vim/vim/commit/5fac467474376a844407cecc0ff481510ead221c Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 2 22:16:32 2016 +0100 patch 7.4.1474 Problem: Compiler warnings without the float feature. Solution: Move #ifdefs. (John Marriott)
author Christian Brabandt <cb@256bit.org>
date Wed, 02 Mar 2016 22:30:05 +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]