commit | 334adf0ae530a70454d9c01b8aeb717f324d7c97 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed May 25 13:34:04 2011 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed May 25 13:34:04 2011 +0200 |
tree | 2c5d7bcb14c4b0cdaf25c30fd80fc15801f14386 | |
parent | a660dc8f303548488f6138a04cb7a33a396d1b08 [diff] [blame] |
updated for version 7.3.201 Problem: "} else" still causes following lines to be indented too much. Solution: Better detection for the "else" block. (Lech Lorens)
diff --git a/src/testdir/test3.ok b/src/testdir/test3.ok index 2e62272..852a4c5 100644 --- a/src/testdir/test3.ok +++ b/src/testdir/test3.ok
@@ -1262,3 +1262,14 @@ foo(); } + +void func(void) +{ + for (int i = 0; i < 10; ++i) + if (i & 1) { + foo(1); + } else + foo(0); + baz(); +} +