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.
Paths
| Differential D25675
clang-format: [JS] Fix template string ASI. ClosedPublic Authored by mprobst on Oct 17 2016, 6:36 AM.
Details Summary Previously, automatic semicolon insertion would add an unwrapped line var x = `foo${ bar}`; Would be formatted with bar... on a separate line and no indent.
Diff Detail
Event Timelinemprobst updated this object. This revision is now accepted and ready to land.Oct 20 2016, 9:25 PM Closed by commit rL284807: clang-format: [JS] Fix template string ASI. (authored by mprobst). · Explain WhyOct 20 2016, 10:20 PM This revision was automatically updated to reflect the committed changes. mprobst marked an inline comment as done.
Revision Contents
Diff 75390 cfe/trunk/lib/Format/UnwrappedLineParser.cpp
cfe/trunk/unittests/Format/FormatTestJS.cpp
|