[clang-format] Support text proto extensions
authorKrasimir Georgiev <krasimir@google.com>
Tue, 13 Feb 2018 10:20:39 +0000 (10:20 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Tue, 13 Feb 2018 10:20:39 +0000 (10:20 +0000)
commit4e290648ae2a2b7703fc69d037f356ecfe36f238
tree9a27b1c9f5869a304124a2ad25bca287c0d10b83
parent1f95ef1815c9b6a961811ec78e44d14b277abdd3
[clang-format] Support text proto extensions

Summary:
This adds support for text proto extensions, like:
```
msg {
  [type.type/ext] {
    key: value
  }
}
```

Reviewers: djasper

Reviewed By: djasper

Subscribers: klimek, cfe-commits

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

llvm-svn: 324995
clang/lib/Format/ContinuationIndenter.cpp
clang/lib/Format/FormatToken.h
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTestProto.cpp
clang/unittests/Format/FormatTestTextProto.cpp