diff options
-rw-r--r-- | lib/Format/Format.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index b94925a2ab..6fb1bc2cb7 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -953,6 +953,8 @@ public: if (CurrentToken->is(tok::r_square)) { if (StartsObjCMethodExpr) objCSelector.markEnd(*CurrentToken); + Left->MatchingParen = CurrentToken; + CurrentToken->MatchingParen = Left; next(); return true; } |