From 490accaef42ac7a15c56c0252e1e266631534d8a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 5 Jul 2011 18:08:28 +0200 Subject: Fix a mis-indentation bug in C++ indenter --- cutl/compiler/cxx-indenter.txx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cutl/compiler') 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; } -- cgit v1.1