aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/indent.in
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-12-23 16:30:39 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-12-23 16:30:39 -0800
commita21db45cee5e68c17a09f0c0ebc715f24c870a43 (patch)
tree01035ef80c4b5bbfe1ef27f9969a7c216d0843bd /tests/indent.in
parent2e948d9d6d98a644a4fef83956a4835c1aef9b43 (diff)
Improve indentation of blocks inside if/while headers
Fixes #1665
Diffstat (limited to 'tests/indent.in')
-rw-r--r--tests/indent.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/indent.in b/tests/indent.in
index c770f10c..226db14e 100644
--- a/tests/indent.in
+++ b/tests/indent.in
@@ -75,4 +75,11 @@ echo hi
else
echo bye
end; echo alpha "
-' | ../fish_indent \ No newline at end of file
+' | ../fish_indent
+
+echo \nTest7
+# issue 1665
+echo -n '
+if begin ; false; end; echo hi ; end
+while begin ; false; end; echo hi ; end
+' | ../fish_indent