annotate runtime/indent/testdir/matlab.ok @ 30592:457ea0570b6f v9.0.0631

patch 9.0.0631: too many delete() calls in tests Commit: https://github.com/vim/vim/commit/145d1fd91041bd2a22a11eef0357702e420796e2 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 30 21:57:11 2022 +0100 patch 9.0.0631: too many delete() calls in tests Problem: Too many delete() calls in tests. Solution: Use deferred delete where possible.
author Bram Moolenaar <Bram@vim.org>
date Fri, 30 Sep 2022 23:00:10 +0200
parents a0e0f0256d0b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15068
d9d97b8afe0d Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 % vim: set ft=matlab sw=4 :
d9d97b8afe0d Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2
d9d97b8afe0d Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 % START_INDENT
d9d97b8afe0d Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 if true
d9d97b8afe0d Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5 disp foo
d9d97b8afe0d Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 elseif false
d9d97b8afe0d Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 disp bar
d9d97b8afe0d Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 end
d9d97b8afe0d Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 % END_INDENT
d9d97b8afe0d Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10
d9d97b8afe0d Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 % START_INDENT
d9d97b8afe0d Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 try
d9d97b8afe0d Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 statements
d9d97b8afe0d Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14 catch exception
d9d97b8afe0d Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 statements
d9d97b8afe0d Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 end
d9d97b8afe0d Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17 % END_INDENT
15194
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
18
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
19 % START_INDENT
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
20 if true, ...
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
21 if true
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
22 disp hello
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
23 end
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
24 end
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
25 % END_INDENT
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
26
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
27 % START_INDENT
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
28 switch a
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
29 case expr
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
30 if true, foo; end
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
31 disp hello
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
32 otherwise
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
33 disp bar
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
34 end
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
35 % END_INDENT
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
36
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
37 % START_INDENT
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
38 if true
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
39 A(1:end - 1)
18848
a0e0f0256d0b Runtime file updates.
Bram Moolenaar <Bram@vim.org>
parents: 15194
diff changeset
40 C{1:end - 1}
15194
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
41 disp foo
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
42 end
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
43 % END_INDENT
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
44
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
45 % START_INDENT
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
46 A = [{
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
47 }
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
48 ] ...
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
49 disp foo
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
50 disp bar
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
51 % END_INDENT
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
52
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
53 % START_INDENT
18848
a0e0f0256d0b Runtime file updates.
Bram Moolenaar <Bram@vim.org>
parents: 15194
diff changeset
54 if true
a0e0f0256d0b Runtime file updates.
Bram Moolenaar <Bram@vim.org>
parents: 15194
diff changeset
55 % end
a0e0f0256d0b Runtime file updates.
Bram Moolenaar <Bram@vim.org>
parents: 15194
diff changeset
56 %% end
a0e0f0256d0b Runtime file updates.
Bram Moolenaar <Bram@vim.org>
parents: 15194
diff changeset
57 disp foo
a0e0f0256d0b Runtime file updates.
Bram Moolenaar <Bram@vim.org>
parents: 15194
diff changeset
58 end
a0e0f0256d0b Runtime file updates.
Bram Moolenaar <Bram@vim.org>
parents: 15194
diff changeset
59 % END_INDENT
a0e0f0256d0b Runtime file updates.
Bram Moolenaar <Bram@vim.org>
parents: 15194
diff changeset
60
a0e0f0256d0b Runtime file updates.
Bram Moolenaar <Bram@vim.org>
parents: 15194
diff changeset
61 % START_INDENT
15194
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
62 % INDENT_EXE let b:MATLAB_function_indent = 0
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
63 function foo
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
64 disp foo
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
65 function nested
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
66 disp bar
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
67 end
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
68 end
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
69 % END_INDENT
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
70
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
71 % START_INDENT
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
72 % INDENT_EXE let b:MATLAB_function_indent = 1
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
73 function foo
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
74 disp foo
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
75 function nested
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
76 disp bar
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
77 end
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
78 end
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
79 % END_INDENT
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
80
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
81 % START_INDENT
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
82 % INDENT_EXE let b:MATLAB_function_indent = 2
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
83 function foo
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
84 disp foo
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
85 function nested
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
86 disp bar
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
87 end
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
88 end
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15068
diff changeset
89 % END_INDENT