Before:
x as{x: number}
After:
x as {x: number}
Paths
| Differential D23761
clang-format: [JS] supports casts to types starting with punctuation ("{[("). ClosedPublic Authored by mprobst on Aug 21 2016, 11:21 AM.
Details Summary Before: x as{x: number} After: x as {x: number}
Diff Detail Event Timelinemprobst added inline comments. djasper edited edge metadata. Comment ActionsPlease add a "before" and "after" to the patch description before submitting. Otherwise looks good. This revision is now accepted and ready to land.Aug 22 2016, 7:21 AM Closed by commit rL279436: clang-format: [JS] supports casts to types starting with punctuation ("{[("). (authored by mprobst). · Explain WhyAug 22 2016, 7:31 AM This revision was automatically updated to reflect the committed changes. mprobst marked an inline comment as done.
Revision Contents
Diff 68817 lib/Format/FormatTokenLexer.h
lib/Format/FormatTokenLexer.cpp
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestJS.cpp
|
What happens if the '${' is immediately after a backslash (the if statement above), should the '${' get escaped?