clang-format: [JS] support trailing commas in imports.

Reviewers: djasper

Subscribers: cfe-commits, klimek

Differential Revision: http://reviews.llvm.org/D22147

llvm-svn: 274976
This commit is contained in:
Martin Probst
2016-07-09 15:09:22 +00:00
parent 6ec90ec2ab
commit a8c9d154b8
2 changed files with 6 additions and 0 deletions

View File

@@ -396,6 +396,8 @@ private:
// {sym as alias, sym2 as ...} from '...';
nextToken();
while (true) {
if (Current->is(tok::r_brace))
return true;
if (Current->isNot(tok::identifier))
return false;