annotate runtime/indent/testdir/vim.ok @ 32670:695b50472e85

Fix line endings issue
author Christian Brabandt <cb@256bit.org>
date Mon, 26 Jun 2023 13:13:12 +0200
parents cc751d944b7e
children 94f4a488412e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14970
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " vim: set ft=vim sw=4 :
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " START_INDENT
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 func Some()
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5 let x = 1
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 endfunc
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 let cmd =
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 \ 'some '
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 \ 'string'
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11
23737
34b4eb3a8458 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 23573
diff changeset
12 if 1
34b4eb3a8458 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 23573
diff changeset
13 let x = [
34b4eb3a8458 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 23573
diff changeset
14 \ ]
34b4eb3a8458 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 23573
diff changeset
15 endif
34b4eb3a8458 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 23573
diff changeset
16
23931
5b37a0bf7e3a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23737
diff changeset
17 for x in [
5b37a0bf7e3a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23737
diff changeset
18 {key: 'value'},
5b37a0bf7e3a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23737
diff changeset
19 ]
5b37a0bf7e3a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23737
diff changeset
20 eval 0
5b37a0bf7e3a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23737
diff changeset
21 endfor
5b37a0bf7e3a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23737
diff changeset
22
29274
d314efe6447a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23931
diff changeset
23 let t = [
d314efe6447a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23931
diff changeset
24 \ {
d314efe6447a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23931
diff changeset
25 \ 'k': 'val',
d314efe6447a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23931
diff changeset
26 \ },
d314efe6447a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23931
diff changeset
27 \ ]
d314efe6447a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23931
diff changeset
28
30085
ebed259f919f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29274
diff changeset
29 def Func()
ebed259f919f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29274
diff changeset
30 var d = dd
30547
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
31 ->extend({
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
32 })
30085
ebed259f919f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29274
diff changeset
33 eval 0
ebed259f919f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29274
diff changeset
34 enddef
14970
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
35 " END_INDENT
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
36
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
37 " START_INDENT
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
38 " INDENT_EXE let g:vim_indent_cont = 6
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
39
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
40 let cmd =
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
41 \ 'some '
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
42 \ 'string'
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
43
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
44 " END_INDENT
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
45
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
46 " START_INDENT
23573
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
47 " INDENT_EXE let g:vim_indent_cont = 5
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
48
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
49 let list = [
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
50 \ 'one',
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
51 \ 'two']
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
52
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
53 " END_INDENT
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
54
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
55 " START_INDENT
14970
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
56 " INDENT_EXE unlet g:vim_indent_cont
23573
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
57
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
58 let list = [
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
59 'one',
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
60 'two',
30547
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
61 ]
23573
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
62 echo
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
63
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
64 " END_INDENT
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
65
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
66 " START_INDENT
14970
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
67 " INDENT_AT this-line
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
68 func Some()
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
69 let f = x " this-line
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
70 endfunc
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
71 " END_INDENT
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
72
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
73 " START_INDENT
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
74 " INDENT_NEXT next-line
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
75 func Some()
30547
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
76 " next-line
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
77 let f = x
14970
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
78 endfunc
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
79 " END_INDENT
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
80
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
81 " START_INDENT
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
82 " INDENT_PREV prev-line
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
83 func Some()
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
84 let f = x
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
85 " prev-line
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
86 endfunc
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
87 " END_INDENT
18489
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
88
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
89 " START_INDENT
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
90 let a =<< END
30547
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
91 nothing
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
92 END
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
93 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
94
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
95 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
96 let a =<< trim END
18489
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
97 nothing
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
98 END
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
99 " END_INDENT
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
100
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
101 " START_INDENT
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
102 " INDENT_AT this-line
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
103 let a=<< trim END
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
104 blah
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
105 blah
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
106 blah this-line
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
107 END
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
108 " END_INDENT
30547
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
109
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
110 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
111 if v:true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
112 echo 0
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
113 end
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
114 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
115
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
116 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
117 var result = Func(
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
118 arg1,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
119 arg2
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
120 )
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
121 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
122
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
123 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
124 var result = Func(arg1,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
125 arg2)
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
126 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
127
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
128 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
129 filter(list, (k, v) =>
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
130 v > 0)
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
131 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
132
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
133 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
134 filter(list, (k, v) => {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
135 const x = get(list, k, 0)
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
136 return x > 0
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
137 })
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
138 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
139
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
140 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
141 if x > 0
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
142 filter(list, (k, v) => {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
143 const x = get(list, k, 1)
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
144 return x > 0
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
145 })
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
146 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
147 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
148
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
149 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
150 {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
151 var temp = 'temp'
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
152 }
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
153 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
154
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
155 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
156 var text = lead
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
157 .. middle
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
158 .. end
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
159 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
160
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
161 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
162 var text = lead ..
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
163 middle ..
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
164 end
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
165 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
166
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
167 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
168 var total = start +
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
169 end -
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
170 correction
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
171 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
172
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
173 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
174 var result = start
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
175 :+ print
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
176 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
177
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
178 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
179 var result = positive
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
180 ? PosFunc(arg)
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
181 : NegFunc(arg)
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
182 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
183
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
184 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
185 var result = GetBuilder()
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
186 ->BuilderSetWidth(333)
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
187 ->BuilderSetHeight(777)
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
188 ->BuilderBuild()
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
189 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
190
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
191 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
192 var result = MyDict
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
193 .member
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
194 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
195
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
196 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
197 autocmd BufNewFile *.match if condition
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
198 | echo 'match'
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
199 | endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
200 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
201
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
202 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
203 set cpo+=C
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
204 var lines =<< trim END
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
205 | this works
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
206 END
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
207 set cpo-=C
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
208 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
209
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
210 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
211 syn region Text
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
212 \ start='foo'
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
213 #\ comment
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
214 \ end='bar'
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
215 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
216
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
217 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
218 au CursorHold * echom 'BEFORE bar'
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
219 #\ some comment
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
220 | echom 'AFTER bar'
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
221 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
222
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
223 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
224 def MyFunc(text: string,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
225 separator = '-'
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
226 ): string
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
227 enddef
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
228 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
229
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
230 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
231 def MyFunc(
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
232 text: string,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
233 separator = '-'
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
234 ): string
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
235 enddef
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
236 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
237
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
238 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
239 [var1, var2] =
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
240 Func()
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
241 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
242
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
243 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
244 const list = ['one',
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
245 'two']
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
246 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
247
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
248 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
249 const list = [
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
250 'one',
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
251 'two',
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
252 ]
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
253 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
254
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
255 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
256 const dict = {one: 1,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
257 two: 2
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
258 }
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
259 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
260
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
261 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
262 const dict = {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
263 one: 1,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
264 two: 2
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
265 }
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
266 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
267
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
268 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
269 if true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
270 const dict =
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
271 {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
272 one: 1,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
273 two: 2
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
274 }
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
275 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
276 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
277
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
278 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
279 def Func()
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
280 return {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
281 one: 1
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
282 }
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
283 enddef
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
284 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
285
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
286 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
287 echo {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
288 a: 0,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
289 # b
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
290 # c
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
291 }
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
292 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
293
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
294 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
295 echo search(
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
296 # comment
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
297 '1'
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
298 .. '2'
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
299 )
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
300 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
301
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
302 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
303 if true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
304 var v = ( # trailing "(" starts line continuation
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
305 3 + 4 # nothing special
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
306 ) # end of expression indicates continued line
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
307 var x: number # needs to align with previous "var"
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
308 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
309 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
310
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
311 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
312 def Func() # {{{
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
313 # comment
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
314 if true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
315 return
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
316 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
317 enddef
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
318 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
319
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
320 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
321 echo {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
322 key:
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
323 'value',
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
324 }
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
325 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
326
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
327 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
328 var id = time
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
329 ->timer_start((_) => {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
330 n = 0
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
331 })
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
332 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
333
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
334 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
335 augroup Name
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
336 autocmd!
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
337 augroup END
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
338 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
339
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
340 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
341 var n =
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
342 # comment
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
343 1
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
344 + 2
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
345
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
346 var s = ''
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
347 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
348
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
349 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
350 var keys = {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
351 J: 'j',
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
352 "\<Home>": '1G',
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
353 "\<End>": 'G',
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
354 z: 'zz'
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
355 }
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
356 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
357
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
358 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
359 export def Func(
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
360 n: number,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
361 s: string,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
362 ...l: list<bool>
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
363 )
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
364 enddef
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
365 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
366
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
367 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
368 var heredoc =<< trim ENDD
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
369 var nested_heredoc =<< trim END
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
370 END
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
371 ENDD
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
372 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
373
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
374 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
375 if true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
376 else " comment
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
377 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
378 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
379
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
380 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
381 if true | echo 'one' | endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
382 if true | echo 'two' | endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
383 if true | echo 'three' | endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
384 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
385
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
386 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
387 if true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
388 :'<-1 mark <
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
389 else
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
390 echo ''
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
391 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
392 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
393
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
394 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
395 substitute/pat /rep /
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
396 echo
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
397 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
398
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
399 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
400 try
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
401 echo 1
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
402 catch /pat / # comment
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
403 echo 2
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
404 endtry
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
405 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
406
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
407 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
408 def Func()
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
409 Cmd %
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
410 enddef
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
411 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
412
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
413 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
414 if end == 'xxx' || end == 'yyy'
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
415 echo
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
416 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
417 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
418
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
419 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
420 if true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
421 popup_move(id, {col: 1,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
422 line: 2})
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
423 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
424 setwinvar(id, 'name', 3)
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
425 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
426
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
427 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
428 var d = [
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
429 {a: 'x',
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
430 b: 'y'},
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
431 FuncA(),
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
432 FuncB(),
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
433 ]
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
434 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
435
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
436 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
437 var ll = [[
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
438 1,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
439 2,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
440 3], [
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
441 4,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
442 5,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
443 6], [
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
444 7,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
445 8,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
446 9]]
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
447 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
448
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
449 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
450 var ld = [{
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
451 a: 'xxx',
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
452 b: 'yyy'}, {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
453 c: 'xxx',
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
454 d: 'yyy'}, {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
455 e: 'xxx',
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
456 f: 'yyy'}, {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
457 }]
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
458 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
459
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
460 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
461 var d = {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
462 a: {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
463 b: {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
464 c: [{
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
465 d: 'e',
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
466 f: 'g',
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
467 h: 'i'
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
468 }],
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
469 j: 'k',
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
470 },
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
471 },
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
472 }
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
473 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
474
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
475 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
476 if true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
477 var end: any
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
478 if true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
479 end = 0
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
480 elseif true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
481 echo
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
482 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
483 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
484 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
485
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
486 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
487 nunmap <buffer> (
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
488 nunmap <buffer> )
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
489 inoremap [ {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
490 inoremap ] }
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
491 silent! xunmap i{
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
492 silent! xunmap a{
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
493 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
494
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
495 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
496 def Func(
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
497 s: string,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
498 n = 1,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
499 m = 2
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
500 )
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
501 enddef
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
502 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
503
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
504 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
505 var h =<< END
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
506 text
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
507 END
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
508
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
509 def Func()
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
510 echo
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
511 enddef
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
512 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
513
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
514 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
515 def Func()
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
516 var h =<< END
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
517 text
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
518 END
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
519 echo 'test'
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
520 enddef
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
521 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
522
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
523 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
524 def Foo()
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
525 lcd -
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
526 enddef
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
527 def Bar()
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
528 echo
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
529 enddef
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
530 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
531
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
532 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
533 if true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
534 n = Func(1, 2,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
535 3)
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
536 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
537 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
538
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
539 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
540 def Func(s: string,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
541 n: number): bool
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
542 if true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
543 return false
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
544 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
545 enddef
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
546 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
547
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
548 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
549 def Func(
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
550 n: number)
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
551 #
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
552 echo
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
553 enddef
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
554 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
555
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
556 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
557 " INDENT_AT this-line
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
558 def Func(
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
559 n: number)
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
560 #
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
561 echo # this-line
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
562 enddef
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
563 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
564
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
565 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
566 if true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
567 if true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
568 normal! ==
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
569 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
570 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
571 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
572
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
573 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
574 var d = {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
575 a: () => true,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
576 b: () => true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
577 && true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
578 && Foo(),
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
579 c: () => Bar(),
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
580 e: () => Baz(),
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
581 }
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
582 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
583
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
584 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
585 def Select(Cont: func(func(any)), Pred: func(any): bool): func(func(any))
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
586 return (Emit: func(any)) => {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
587 Cont((t: any) => {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
588 if Pred(t)
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
589 Emit(t)
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
590 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
591 })
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
592 }
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
593 enddef
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
594 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
595
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
596 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
597 " INDENT_EXE let g:vim_indent = {'more_in_bracket_block': v:true}
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
598 def Select(Cont: func(func(any)), Pred: func(any): bool): func(func(any))
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
599 return (Emit: func(any)) => {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
600 Cont((t: any) => {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
601 if Pred(t)
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
602 Emit(t)
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
603 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
604 })
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
605 }
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
606 enddef
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
607 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
608
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
609 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
610 " INDENT_EXE unlet! g:vim_indent
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
611 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
612
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
613 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
614 g:lightline = {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
615 'active': {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
616 'left': [ [ 'mode', 'paste' ], [ 'readonly', 'relativepath', 'modified' ] ],
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
617 },
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
618 'inactive': {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
619 'left': [ [ 'readonly', 'relativepath', 'modified' ] ],
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
620 }
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
621 }
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
622 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
623
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
624 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
625 if getline(1, 10)
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
626 ->map((_, v: string): number => strcharlen(v))
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
627 ->max() > 1'000
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
628 &l:breakindent = false
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
629 &l:linebreak = false
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
630 else
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
631 &l:breakindent = true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
632 &l:linebreak = true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
633 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
634 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
635
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
636 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
637 var ext2cmd: dict<string> = {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
638 doc: $'antiword {fname}',
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
639 docx: $'pandoc --from=docx --to=markdown {fname}',
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
640 epub: $'pandoc --from=epub --to=markdown {fname}',
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
641 odp: $'odt2txt {fname}',
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
642 odt: $'odt2txt {fname}',
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
643 pdf: $'pdftotext -nopgbrk -layout -q -eol unix {fname} -',
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
644 rtf: 'unrtf --text',
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
645 }
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
646 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
647
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
648 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
649 const ptybuf: number = term_start(&shell, {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
650 hidden: true,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
651 exit_cb: (_, _) => {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
652 if true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
653 close
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
654 else
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
655 help
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
656 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
657 }
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
658 })
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
659 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
660
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
661 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
662 var d = {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
663 a: 0,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
664 # a ' quote {{{
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
665 #}}}
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
666 b: 0,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
667 }
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
668 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
669
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
670 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
671 echo printf('%s () %s',
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
672 1,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
673 2
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
674 )
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
675 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
676
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
677 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
678 prop_add(1, col('.'), {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
679 length: 2,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
680 type: 'test'
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
681 })
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
682 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
683
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
684 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
685 echo (() => " string starting with space")()
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
686 echo
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
687 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
688
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
689 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
690 var variables = deepcopy(g:)
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
691 ->filter((k: string, _): bool =>
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
692 k =~ '\c\V' .. keyword->escape('\')
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
693 && k !~ '\%(loaded\|did_plugin_\)')
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
694 ->items()
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
695 ->map((_, v): string => v[0] .. ' = ' .. string(v[1]))
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
696 new
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
697 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
698
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
699 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
700 var d = freq
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
701 ->map((_, v) =>
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
702 v * (
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
703 1
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
704 + 2
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
705 ))
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
706 for item in d
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
707 ->items()
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
708 ->sort((a, b) => b[1] - a[1])
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
709 echo
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
710 endfor
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
711 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
712
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
713 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
714 make_job = job_start([&shell, &shellcmdflag, make_cmd], {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
715 callback: function(MakeProcessOutput, [qfid]),
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
716 close_cb: function(MakeCloseCb, [qfid]),
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
717 exit_cb: MakeCompleted,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
718 in_io: 'null'
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
719 })
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
720 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
721
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
722 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
723 var matching_abbrev: list<dict<string>> = copy(ABBREV)
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
724 ->filter((_, v: dict<string>): bool =>
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
725 stridx(v.lhs, word_to_complete) == 0)
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
726 ->map((_, v: dict<string>) => ({
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
727 word: v.lhs,
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
728 menu: AbbrevRhs(v.rhs)->stridx('expand_') >= 0
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
729 ? AbbrevRhs(v.rhs)->matchstr('.*,\s*''\zs.*\ze'')')
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
730 : AbbrevRhs(v.rhs)
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
731 }))
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
732 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
733
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
734 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
735 def Func()
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
736 if true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
737 vimgrep /^\C\s*\%(fu\%[nction]\|def\)\s\+/ file
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
738 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
739 enddef
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
740 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
741
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
742 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
743 setlocal iskeyword+=[
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
744 cword = expand('<cword>')
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
745 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
746
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
747 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
748 silent if true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
749 echo
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
750 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
751 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
752
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
753 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
754 def Func()
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
755 sort :^.*[\/]:
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
756 enddef
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
757 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
758
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
759 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
760 def Func()
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
761 d = {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
762 }
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
763 hd =<< trim END
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
764 ['
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
765 ]'
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
766 END
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
767 enddef
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
768 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
769
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
770 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
771 def Func()
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
772 if true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
773 var hd =<< trim END
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
774 if get(b:, 'current_syntax', '')
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
775 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
776 END
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
777 elseif true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
778 echo
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
779 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
780 enddef
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
781 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
782
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
783 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
784 # test for control-flow keyword followed by commented fold marker {{{
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
785 if true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
786 echo
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
787 endif #}}}
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
788 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
789
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
790 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
791 if winsz == 0|let winsz= ""|endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
792 exe "noswapfile ".winsz."wincmd s"
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
793 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
794
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
795 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
796 if true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
797 if true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
798 windo if true | echo | endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
799 augroup Name
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
800 autocmd WinLeave * if true | eval 1 + 2 | endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
801 augroup END
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
802 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
803 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
804 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
805
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
806 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
807 if true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
808 echo ' =<< trim END'
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
809 ->len()
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
810 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
811 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
812
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
813 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
814 function Func()
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
815 if true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
816 if true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
817 if true | echo com | endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
818 if true | echo com | endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
819 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
820 else
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
821 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
822 endfunction
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
823 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
824
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
825 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
826 function Func()
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
827 if v:true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
828 +
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
829 echo
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
830 -
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
831 endif
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
832 endfunction
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
833 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
834
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
835 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
836 var matchpairs: string = &matchpairs
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
837 var pairs: dict<list<string>>
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
838 for [opening: string, closing: string]
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
839 in matchpairs
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
840 ->split(',')
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
841 ->map((_, v: string): list<string> => split(v, ':'))
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
842 pairs[opening] = [escape(opening, '[]'), escape(closing, '[]'), 'nW', 'w$']
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
843 pairs[closing] = [escape(opening, '[]'), escape(closing, '[]'), 'bnW', 'w0']
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
844 endfor
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
845 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
846
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
847 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
848 {
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
849 echo []
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
850 + []
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
851 + [{a: 1,
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30634
diff changeset
852 b: 2}]
30547
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
853 }
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
854 " END_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
855
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
856 " START_INDENT
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
857 silent! argdel *
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
858 edit file
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
859 " END_INDENT
30634
f68f43043842 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30547
diff changeset
860
f68f43043842 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30547
diff changeset
861 " START_INDENT
f68f43043842 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30547
diff changeset
862 def Foo()
f68f43043842 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30547
diff changeset
863 Bar(1,
f68f43043842 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30547
diff changeset
864 []->filter((_, v) => {
f68f43043842 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30547
diff changeset
865 return true
f68f43043842 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30547
diff changeset
866 }),
f68f43043842 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30547
diff changeset
867 () => {
f68f43043842 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30547
diff changeset
868 echo
f68f43043842 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30547
diff changeset
869 })
f68f43043842 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30547
diff changeset
870 enddef
f68f43043842 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30547
diff changeset
871 " END_INDENT
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30634
diff changeset
872
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30634
diff changeset
873 " START_INDENT
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30634
diff changeset
874 echo {
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30634
diff changeset
875 k: () => {
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30634
diff changeset
876 if true
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30634
diff changeset
877 echo
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30634
diff changeset
878 popup_setoptions(id,
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30634
diff changeset
879 {title: 'title'})
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30634
diff changeset
880 endif
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30634
diff changeset
881 }
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30634
diff changeset
882 }
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30634
diff changeset
883 " END_INDENT
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30634
diff changeset
884
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30634
diff changeset
885 " START_INDENT
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30634
diff changeset
886 if true
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30634
diff changeset
887 elseif
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30634
diff changeset
888 endif
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30634
diff changeset
889 " END_INDENT
31885
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
890
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
891 " START_INDENT
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
892 if (
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
893 true)
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
894 && true
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
895 echo
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
896 endif
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
897 " END_INDENT
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
898
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
899 " START_INDENT
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
900 abstract class Shape
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
901 this.color = Color.Black
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
902 this.thickness = 10
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
903 endclass
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
904 " END_INDENT
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
905
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
906 " START_INDENT
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
907 class OtherThing
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
908 this.size: number
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
909 static totalSize: number
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
910
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
911 static def ClearTotalSize(): number
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
912 var prev = totalSize
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
913 totalSize = 0
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
914 return prev
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
915 enddef
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
916 endclass
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
917 " END_INDENT
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
918
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
919 " START_INDENT
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
920 interface HasSurface
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
921 this.size: number
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
922 def Surface(): number
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
923 endinterface
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
924 " END_INDENT
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
925
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
926 " START_INDENT
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
927 interface EnterExit
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
928 def Enter(): void
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
929 def Exit(): void
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
930 endinterface
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
931 " END_INDENT
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
932
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
933 " START_INDENT
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
934 enum Color
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
935 White
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
936 Red
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
937 Green
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
938 Blue
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
939 Black
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
940 endenum
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
941 " END_INDENT