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 134890 cfe/trunk/lib/Format/TokenAnnotator.cpp
cfe/trunk/unittests/Format/FormatTestJS.cpp
|