Before:
aaaaa.as ();
After:
aaaaa.as();
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285672
91177308-0d34-0410-b5e6-
96231b3b80d8
Keywords.kw_of, tok::kw_const) &&
(!Left.Previous || !Left.Previous->is(tok::period)))
return true;
- if (Left.is(tok::kw_for) && Left.Previous &&
+ if (Left.isOneOf(tok::kw_for, Keywords.kw_as) && Left.Previous &&
Left.Previous->is(tok::period) && Right.is(tok::l_paren))
return false;
if (Left.is(Keywords.kw_as) &&
verifyFormat("x.let() = 1;");
verifyFormat("x.var() = 1;");
verifyFormat("x.for() = 1;");
+ verifyFormat("x.as() = 1;");
verifyFormat("x = {\n"
" a: 12,\n"
" interface: 1,\n"