of is only a keyword when after an identifier, but not when after
an actual keyword.
Before:
return of (a, b, c);
After:
return of(a, b, c);
Paths
| Differential D43440
clang-format: [JS] fix `of` detection. ClosedPublic Authored by mprobst on Feb 18 2018, 6:47 AM.
Details Summary of is only a keyword when after an identifier, but not when after Before: return of (a, b, c); After: return of(a, b, c);
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Feb 19 2018, 4:10 AM Closed by commit rL325489: clang-format: [JS] fix `of` detection. (authored by mprobst). · Explain WhyFeb 19 2018, 4:34 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 134835 lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestJS.cpp
|