annotate runtime/indent/testdir/vim.ok @ 30085:ebed259f919f

Update runtime files Commit: https://github.com/vim/vim/commit/0daafaa7d99ef500f76b1b12f5fe8153e2fcaea0 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 4 17:45:43 2022 +0100 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Sun, 04 Sep 2022 19:00:05 +0200
parents d314efe6447a
children 1e91e26ceebf
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
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5 func Some()
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 let x = 1
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 endfunc
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 let cmd =
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 \ 'some '
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 \ 'string'
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12
23737
34b4eb3a8458 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 23573
diff changeset
13 if 1
34b4eb3a8458 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 23573
diff changeset
14 let x = [
34b4eb3a8458 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 23573
diff changeset
15 \ ]
34b4eb3a8458 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 23573
diff changeset
16 endif
34b4eb3a8458 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 23573
diff changeset
17
23931
5b37a0bf7e3a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23737
diff changeset
18 " TODO: add searchpair() to find matching {
5b37a0bf7e3a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23737
diff changeset
19 "for x in [
5b37a0bf7e3a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23737
diff changeset
20 "{
5b37a0bf7e3a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23737
diff changeset
21 "key: 'value'
5b37a0bf7e3a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23737
diff changeset
22 "},
5b37a0bf7e3a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23737
diff changeset
23 "]
5b37a0bf7e3a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23737
diff changeset
24 "eval 0
5b37a0bf7e3a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23737
diff changeset
25 "endfor
5b37a0bf7e3a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23737
diff changeset
26
5b37a0bf7e3a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23737
diff changeset
27 for x in [
5b37a0bf7e3a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23737
diff changeset
28 {key: 'value'},
5b37a0bf7e3a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23737
diff changeset
29 ]
5b37a0bf7e3a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23737
diff changeset
30 eval 0
5b37a0bf7e3a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23737
diff changeset
31 endfor
5b37a0bf7e3a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23737
diff changeset
32
29274
d314efe6447a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23931
diff changeset
33 let t = [
d314efe6447a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23931
diff changeset
34 \ {
d314efe6447a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23931
diff changeset
35 \ 'k': 'val',
d314efe6447a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23931
diff changeset
36 \ },
d314efe6447a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23931
diff changeset
37 \ ]
d314efe6447a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23931
diff changeset
38
30085
ebed259f919f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29274
diff changeset
39 def Func()
ebed259f919f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29274
diff changeset
40 var d = dd
ebed259f919f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29274
diff changeset
41 ->extend({
ebed259f919f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29274
diff changeset
42 })
ebed259f919f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29274
diff changeset
43 eval 0
ebed259f919f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29274
diff changeset
44 enddef
ebed259f919f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 29274
diff changeset
45
14970
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
46 " END_INDENT
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
47
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
48 " START_INDENT
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
49 " 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
50
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
51 let cmd =
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
52 \ 'some '
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
53 \ 'string'
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
54
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
55 " END_INDENT
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
56
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
57 " START_INDENT
23573
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
58 " INDENT_EXE let g:vim_indent_cont = 5
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
59
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
60 let list = [
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
61 \ 'one',
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
62 \ 'two']
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_EXE unlet g:vim_indent_cont
23573
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
68
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
69 let list = [
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
70 'one',
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
71 'two',
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
72 ]
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
73 echo
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
74
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
75 " END_INDENT
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
76
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
77 " START_INDENT
14970
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
78 " INDENT_AT this-line
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
79 func Some()
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
80 let f = x " this-line
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
81 endfunc
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
82 " END_INDENT
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
83
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
84 " START_INDENT
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
85 " INDENT_NEXT next-line
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
86 func Some()
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
87 " next-line
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
88 let f = x
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
89 endfunc
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
90 " END_INDENT
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
91
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
92 " START_INDENT
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
93 " INDENT_PREV prev-line
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
94 func Some()
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
95 let f = x
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
96 " prev-line
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
97 endfunc
19b757c6c6a7 patch 8.1.0496: no tests for indent files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
98 " END_INDENT
18489
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
99
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
100 " START_INDENT
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
101 let a =<< END
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
102 nothing
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
103 END
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
104 " END_INDENT
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
105
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
106 " START_INDENT
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
107 " INDENT_AT this-line
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
108 let a=<< trim END
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
109 blah
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
110 blah
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
111 blah this-line
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
112 END
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14970
diff changeset
113 " END_INDENT