clang-format: [JS] Fix template string ASI.
authorMartin Probst <martin@probst.io>
Fri, 21 Oct 2016 05:11:38 +0000 (05:11 +0000)
committerMartin Probst <martin@probst.io>
Fri, 21 Oct 2016 05:11:38 +0000 (05:11 +0000)
commit717f6dcddcff34b4c67fa4343689b234cdbc7c04
treeaf4f1599ae58b3de61d7fc8e1f2f210a50d40845
parent34b411f07779dc4c95b9f8f815c73b3b39b9eff9
clang-format: [JS] Fix template string ASI.

Summary:
Previously, automatic semicolon insertion would add an unwrapped line
when a template string contained a line break.

    var x = `foo${
        bar}`;

Would be formatted with `bar...` on a separate line and no indent.

Reviewers: djasper

Subscribers: cfe-commits, klimek

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

llvm-svn: 284807
clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTestJS.cpp