]> granicus.if.org Git - clang/commit
clang-format: [JS] Properly set scopes inside template strings.
authorDaniel Jasper <djasper@google.com>
Tue, 31 Jan 2017 13:03:07 +0000 (13:03 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 31 Jan 2017 13:03:07 +0000 (13:03 +0000)
commit3506666c31935cf432089af0872e6e16701c57dd
treed9e232a64c05f84d6f5a7beacdc50741d1dacf53
parent815735e44ca11755c8c2382d09f48b34b1c85b13
clang-format: [JS] Properly set scopes inside template strings.

Before:
  var f = `aaaaaaaaaaaaa:${aaaaaaa
              .aaaaa} aaaaaaaa
           aaaaaaaaaaaaa:${aaaaaaa.aaaaa} aaaaaaaa`;

After:
  var f = `aaaaaaaaaaaaa:${aaaaaaa.aaaaa} aaaaaaaa
           aaaaaaaaaaaaa:${aaaaaaa.aaaaa} aaaaaaaa`;

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@293622 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/FormatToken.h
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestJS.cpp