aboutsummaryrefslogtreecommitdiff
path: root/cutl
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-07-05 18:08:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-07-05 18:08:28 +0200
commit490accaef42ac7a15c56c0252e1e266631534d8a (patch)
tree21223fac6a1ea7f8b2ac0b989101f7cc24429bee /cutl
parentda17cddd8fe5ab873de06eede24a6faa13e5eab9 (diff)
Fix a mis-indentation bug in C++ indenter
Diffstat (limited to 'cutl')
-rw-r--r--cutl/compiler/cxx-indenter.txx5
1 files changed, 4 insertions, 1 deletions
diff --git a/cutl/compiler/cxx-indenter.txx b/cutl/compiler/cxx-indenter.txx
index 976eb3b..ab5b5a8 100644
--- a/cutl/compiler/cxx-indenter.txx
+++ b/cutl/compiler/cxx-indenter.txx
@@ -541,7 +541,10 @@ namespace cutl
}
}
}
- else if (token_ != rbrace_)
+
+ // Stop buffering unless we have another closing brace.
+ //
+ if (token_ != rbrace_)
{
buffering_ = false;
}