15068
|
1 % vim: set ft=matlab sw=4 :
|
|
2
|
|
3 % START_INDENT
|
|
4 if true
|
|
5 disp foo
|
|
6 elseif false
|
|
7 disp bar
|
|
8 end
|
|
9 % END_INDENT
|
|
10
|
|
11 % START_INDENT
|
|
12 try
|
|
13 statements
|
|
14 catch exception
|
|
15 statements
|
|
16 end
|
|
17 % END_INDENT
|
15194
|
18
|
|
19 % START_INDENT
|
|
20 if true, ...
|
|
21 if true
|
|
22 disp hello
|
|
23 end
|
|
24 end
|
|
25 % END_INDENT
|
|
26
|
|
27 % START_INDENT
|
|
28 switch a
|
|
29 case expr
|
|
30 if true, foo; end
|
|
31 disp hello
|
|
32 otherwise
|
|
33 disp bar
|
|
34 end
|
|
35 % END_INDENT
|
|
36
|
|
37 % START_INDENT
|
|
38 if true
|
|
39 A(1:end - 1)
|
18848
|
40 C{1:end - 1}
|
15194
|
41 disp foo
|
|
42 end
|
|
43 % END_INDENT
|
|
44
|
|
45 % START_INDENT
|
|
46 A = [{
|
|
47 }
|
|
48 ] ...
|
|
49 disp foo
|
|
50 disp bar
|
|
51 % END_INDENT
|
|
52
|
|
53 % START_INDENT
|
18848
|
54 if true
|
|
55 % end
|
|
56 %% end
|
|
57 disp foo
|
|
58 end
|
|
59 % END_INDENT
|
|
60
|
|
61 % START_INDENT
|
15194
|
62 % INDENT_EXE let b:MATLAB_function_indent = 0
|
|
63 function foo
|
|
64 disp foo
|
|
65 function nested
|
|
66 disp bar
|
|
67 end
|
|
68 end
|
|
69 % END_INDENT
|
|
70
|
|
71 % START_INDENT
|
|
72 % INDENT_EXE let b:MATLAB_function_indent = 1
|
|
73 function foo
|
|
74 disp foo
|
|
75 function nested
|
|
76 disp bar
|
|
77 end
|
|
78 end
|
|
79 % END_INDENT
|
|
80
|
|
81 % START_INDENT
|
|
82 % INDENT_EXE let b:MATLAB_function_indent = 2
|
|
83 function foo
|
|
84 disp foo
|
|
85 function nested
|
|
86 disp bar
|
|
87 end
|
|
88 end
|
|
89 % END_INDENT
|