This is an archive of the discontinued LLVM Phabricator instance.

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
introducing an explicit table of JavaScript pseudo keywords.

Diff Detail

Repository
rL LLVM

Event Timeline

mprobst created this revision.Jul 3 2017, 8:53 AM
djasper accepted this revision.Jul 4 2017, 1:27 AM
djasper added inline comments.
lib/Format/FormatToken.h
752 ↗(On Diff #105093)

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.

This revision is now accepted and ready to land.Jul 4 2017, 1:27 AM
mprobst updated this revision to Diff 105148.Jul 4 2017, 2:23 AM
  • fix style of field name and rename it to better match what it does (extra keywords)
This revision was automatically updated to reflect the committed changes.