clang-format: [JS] Fix bug in type colon detection.
authorDaniel Jasper <djasper@google.com>
Wed, 3 Jun 2015 08:43:18 +0000 (08:43 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 3 Jun 2015 08:43:18 +0000 (08:43 +0000)
commit81dbb564a14ff7a162ae920456f064e865294ed0
tree82fab7a770e1e02649dda466ceb8f8fc1cffc65d
parent452252e6c879a42b074280bc156865d1d0c7cee9
clang-format: [JS] Fix bug in type colon detection.

Before, this couldn't be formatted at all:
  class X {
    subs = {
      'b': {
        'c': 1,
      },
    };
  }

llvm-svn: 238907
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTestJS.cpp