]> granicus.if.org Git - clang/commit
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)
commitf6019fd91fb15332686bdb9d18b6f54d25c9bf34
treee0a465de0767cac847e29d8bd4e8379dedbd3a36
parentda86e5325d65f542b23d837cdec218007ec918d8
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

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