| commit | 3f11941d8ab0bbd61bf8c05f08bdeebf46256d2d | [log] [tgz] |
|---|---|---|
| author | Daniel Jasper <djasper@google.com> | Tue Jan 31 14:39:33 2017 +0000 |
| committer | Daniel Jasper <djasper@google.com> | Tue Jan 31 14:39:33 2017 +0000 |
| tree | c8a967ba4ae4ec0a9a80d7fa66b6e42b56f8f0c2 | |
| parent | 8813d5d2217117ff7cc60d399015ffc5347c43ee [diff] |
clang-format: [JS] Indent expressions in ${} relative to their surrounding
This only affects expressions inside ${} scopes of template strings.
Here, we want to indent relative to the surrounding template string and
not the surrounding expression. Otherwise, this can create quite a mess.
Before:
var f = `
aaaaaaaaaaaaaaaaaa: ${someFunction(
aaaaa + //
bbbb)}`;
After:
var f = `
aaaaaaaaaaaaaaaaaa: ${someFunction(
aaaaa + //
bbbb)}`;
llvm-svn: 293636