Before:
yield`foo`;
After:
yield `foo`;
This reinstates commit 71d3b5cd91 / r307023 and fixes the logic by
introducing an explicit table of JavaScript pseudo keywords.
Paths
| Differential D34953
clang-format: [JS] space between pseudo keywords and template literals. ClosedPublic Authored by mprobst on Jul 3 2017, 8:53 AM.
Details Summary Before: yield`foo`; After: yield `foo`; This reinstates commit 71d3b5cd91 / r307023 and fixes the logic by
Diff Detail
Event Timelinedjasper added inline comments.
This revision is now accepted and ready to land.Jul 4 2017, 1:27 AM Closed by commit rL307087: clang-format: [JS] space between pseudo keywords and template literals. (authored by mprobst). · Explain WhyJul 4 2017, 8:30 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 105148 lib/Format/FormatToken.h
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestJS.cpp
|
Nit: Should be "JsKeywords" (http://llvm.org/docs/CodingStandards.html#name-types-functions-variables-and-enumerators-properly). The kw_foo things follow a special convention to be the same as other token types.