clang-format: Fix corner case working around one-per-line dict literals.
authorDaniel Jasper <djasper@google.com>
Wed, 21 May 2014 13:26:58 +0000 (13:26 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 21 May 2014 13:26:58 +0000 (13:26 +0000)
commit2a958321c8a149b3f4952dc78a8f6edcbcae1996
tree0e6771c20033486e7a789b3eb911d2ab95430857
parent301a38b0b75600ecc7e1cec7568f11037ad69f94
clang-format: Fix corner case working around one-per-line dict literals.

Before:
  var object_literal_with_long_name = {
    a: 'aaaaaaaaaaaaaaaaaa', b: 'bbbbbbbbbbbbbbbbbb'
  };

After:
  var object_literal_with_long_name = {
    a: 'aaaaaaaaaaaaaaaaaa',
    b: 'bbbbbbbbbbbbbbbbbb'
  };

llvm-svn: 209296
clang/lib/Format/ContinuationIndenter.cpp
clang/unittests/Format/FormatTestJS.cpp