[clang-format] Fix text proto extension scope opening detection
authorKrasimir Georgiev <krasimir@google.com>
Mon, 19 Feb 2018 16:00:21 +0000 (16:00 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Mon, 19 Feb 2018 16:00:21 +0000 (16:00 +0000)
commit9c5ac63785b5aac0c85b57637409869b27983bfe
treec05cdffbc7d6328f3a14b25ea88be685e776ef24
parent7f0f8bb4bd0581ed28f99254b6cebcfa61913121
[clang-format] Fix text proto extension scope opening detection

Summary:
This fixes the detection of scope openers in text proto extensions; previously
they were not detected correctly leading to instances like:
```
msg {
  [aa.bb
] {
key: value
}
}
```

Subscribers: klimek, cfe-commits

Differential Revision: https://reviews.llvm.org/D43469

llvm-svn: 325513
clang/lib/Format/FormatToken.h
clang/unittests/Format/FormatTestTextProto.cpp