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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user