annotate src/testdir/test_match_conceal.ok @ 8847:470ea7526cc6 v7.4.1711

commit https://github.com/vim/vim/commit/a742e084b677f76c67e9e52c4f9fb9ab24002e20 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 5 21:10:38 2016 +0200 patch 7.4.1711 Problem: When using try/catch in 'statusline' it is still considered an error and the status line will be disabled. Solution: Check did_emsg instead of called_emsg. (haya14busa, closes https://github.com/vim/vim/issues/729)
author Christian Brabandt <cb@256bit.org>
date Tue, 05 Apr 2016 21:15:05 +0200
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]