Update runtime files.
This commit is contained in:
@ -15,3 +15,66 @@ catch exception
|
||||
statements
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
if true, ...
|
||||
if true
|
||||
disp hello
|
||||
end
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
switch a
|
||||
case expr
|
||||
if true, foo; end
|
||||
disp hello
|
||||
otherwise
|
||||
disp bar
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
if true
|
||||
A(1:end - 1)
|
||||
disp foo
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
A = [{
|
||||
}
|
||||
] ...
|
||||
disp foo
|
||||
disp bar
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
% INDENT_EXE let b:MATLAB_function_indent = 0
|
||||
function foo
|
||||
disp foo
|
||||
function nested
|
||||
disp bar
|
||||
end
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
% INDENT_EXE let b:MATLAB_function_indent = 1
|
||||
function foo
|
||||
disp foo
|
||||
function nested
|
||||
disp bar
|
||||
end
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
% INDENT_EXE let b:MATLAB_function_indent = 2
|
||||
function foo
|
||||
disp foo
|
||||
function nested
|
||||
disp bar
|
||||
end
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
@ -15,3 +15,66 @@ catch exception
|
||||
statements
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
if true, ...
|
||||
if true
|
||||
disp hello
|
||||
end
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
switch a
|
||||
case expr
|
||||
if true, foo; end
|
||||
disp hello
|
||||
otherwise
|
||||
disp bar
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
if true
|
||||
A(1:end - 1)
|
||||
disp foo
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
A = [{
|
||||
}
|
||||
] ...
|
||||
disp foo
|
||||
disp bar
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
% INDENT_EXE let b:MATLAB_function_indent = 0
|
||||
function foo
|
||||
disp foo
|
||||
function nested
|
||||
disp bar
|
||||
end
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
% INDENT_EXE let b:MATLAB_function_indent = 1
|
||||
function foo
|
||||
disp foo
|
||||
function nested
|
||||
disp bar
|
||||
end
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
% START_INDENT
|
||||
% INDENT_EXE let b:MATLAB_function_indent = 2
|
||||
function foo
|
||||
disp foo
|
||||
function nested
|
||||
disp bar
|
||||
end
|
||||
end
|
||||
% END_INDENT
|
||||
|
||||
@ -8,6 +8,7 @@ if 1
|
||||
set nocp
|
||||
filetype indent on
|
||||
set nowrapscan
|
||||
set report=9999
|
||||
|
||||
au! SwapExists * call HandleSwapExists()
|
||||
func HandleSwapExists()
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# vim: set filetype=tcl shiftwidth=4 tabstop=4:
|
||||
# vim: set filetype=tcl shiftwidth=4 tabstop=8 expandtab :
|
||||
|
||||
# START_INDENT
|
||||
proc abc {} {
|
||||
|
||||
@ -1,19 +1,19 @@
|
||||
# vim: set filetype=tcl shiftwidth=4 tabstop=4:
|
||||
# vim: set filetype=tcl shiftwidth=4 tabstop=8 expandtab :
|
||||
|
||||
# START_INDENT
|
||||
proc abc {} {
|
||||
set a 5
|
||||
if {[some_cmd]==1} {
|
||||
foreach i [list {1 2 3}] {
|
||||
# Does this comment affect anything?
|
||||
puts $i
|
||||
}
|
||||
}
|
||||
set a 5
|
||||
if {[some_cmd]==1} {
|
||||
foreach i [list {1 2 3}] {
|
||||
# Does this comment affect anything?
|
||||
puts $i
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
command_with_a_long_time -arg1 "First" \
|
||||
-arg2 "Second" \
|
||||
-arg3 "Third"
|
||||
-arg2 "Second" \
|
||||
-arg3 "Third"
|
||||
|
||||
puts "Move indent back after line continuation is complete"
|
||||
# END_INDENT
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<!-- vim: set ft=xml ts=2 sw=0 sts=-1 et : -->
|
||||
<!-- vim: set ft=xml ts=8 sw=0 sts=-1 et : -->
|
||||
<!-- START_INDENT -->
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<tag0>
|
||||
|
||||
@ -1,32 +1,32 @@
|
||||
<!-- vim: set ft=xml ts=2 sw=0 sts=-1 et : -->
|
||||
<!-- vim: set ft=xml ts=8 sw=0 sts=-1 et : -->
|
||||
<!-- START_INDENT -->
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<tag0>
|
||||
<tag1>
|
||||
<!-- comment -->
|
||||
<tag2>
|
||||
<tag3/>
|
||||
</tag2>
|
||||
<!-- text comment -->
|
||||
<tag1>
|
||||
<!-- comment -->
|
||||
<tag2>
|
||||
<tag3/>
|
||||
</tag2>
|
||||
<!-- text comment -->
|
||||
|
||||
<!--
|
||||
text comment
|
||||
-->
|
||||
</tag1>
|
||||
<!--
|
||||
text comment
|
||||
end coment -->
|
||||
<!--
|
||||
text comment
|
||||
-->
|
||||
</tag1>
|
||||
<!--
|
||||
text comment
|
||||
end coment -->
|
||||
</tag0>
|
||||
<!-- END_INDENT -->
|
||||
|
||||
<!-- START_INDENT -->
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<tag0>
|
||||
<tag1>
|
||||
<!-- comment -->
|
||||
<tag2>
|
||||
<tag3/>
|
||||
</tag2>
|
||||
</tag1>
|
||||
<tag1>
|
||||
<!-- comment -->
|
||||
<tag2>
|
||||
<tag3/>
|
||||
</tag2>
|
||||
</tag1>
|
||||
</tag0>
|
||||
<!-- END_INDENT -->
|
||||
|
||||
Reference in New Issue
Block a user