summaryrefslogtreecommitdiffstats
path: root/runtime/syntax/testdir/input/vim_syntax.vim
blob: e8c112cea8cfbd23f712e359bbdf79ed03f37425 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
" Vim :syntax highlighting

syn keyword testKeyword
      \ conceal
      \ cchar=&
      \ contained
      \ containedin=testContainer
      \ nextgroup=testNext,@testCluster
      \ transparent
      \ skipwhite
      \ skipempty
      \ skipnl
      \ keyword1
      \ keyword2
      \ keyword3

syn match testMatch
      \ "pattern"
      \ conceal
      \ cchar=&
      \ contained
      \ containedin=testContainer
      \ nextgroup=testNext,@testCluster
      \ transparent
      \ skipwhite
      \ skipempty
      \ skipnl
      \ contains=testContained1,testContained2
      \ fold
      \ display
      \ extend
      \ excludenl
      \ keepend

syn region testRegion
      \ start="start-pattern"
      \ end="end-pattern"
      \ skip="skip-pattern"
      \ contained
      \ conceal
      \ cchar=&
      \ contained
      \ containedin=testContainer
      \ nextgroup=testNext,@testCluster
      \ transparent
      \ skipwhite
      \ skipempty
      \ skipnl
      \ contains=testContained1,testContained2
      \ oneline
      \ fold
      \ display
      \ extend
      \ concealends
      \ excludenl
      \ keepend

syn cluster testCluster
      \ contains=testContained1,testContained2,testContained3

syn cluster testCluster
      \ add=testAdd
      \ remove=testRemove


" check multiline group list
syn keyword testKeyword
      \ nextgroup=
      \ testNext , 
      \ testNext2 , 
      \ @testCluster 
      \ skipwhite
      \ keyword4
      \ keyword5
      \ keyword6