ide: insert whitespace between 'mut' and 'self' in macro expansion

This commit is contained in:
Jake Heinz 2022-05-15 07:55:13 +00:00
parent 1ff5b2cab4
commit 4efc2a9df2

View File

@ -88,6 +88,9 @@ pub fn insert_ws_into(syn: SyntaxNode) -> SyntaxNode {
LIFETIME_IDENT if is_next(is_text, true) => {
mods.push(do_ws(after, tok));
}
MUT_KW if is_next(|it| it == SELF_KW, false) => {
mods.push(do_ws(after, tok));
}
AS_KW | DYN_KW | IMPL_KW | CONST_KW => {
mods.push(do_ws(after, tok));
}