about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2022-04-29 14:07:19 +0200
committerLukas Wirth <lukastw97@gmail.com>2022-04-29 14:07:19 +0200
commitdf85ee05e3e3fe9583161bf81b5e43fe78bde3da (patch)
tree6a70b9341869170922d31a46c857eba95d0bfef8
parent1b120216de987f2e7700b7707ef6b5d5b5545d94 (diff)
downloadrust-df85ee05e3e3fe9583161bf81b5e43fe78bde3da.tar.gz
rust-df85ee05e3e3fe9583161bf81b5e43fe78bde3da.zip
minor: Insert whitespace after const token when formatting macro expansions
-rw-r--r--crates/ide_db/src/syntax_helpers/insert_whitespace_into_node.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_db/src/syntax_helpers/insert_whitespace_into_node.rs b/crates/ide_db/src/syntax_helpers/insert_whitespace_into_node.rs
index 7f5563d9d09..e389eaf0478 100644
--- a/crates/ide_db/src/syntax_helpers/insert_whitespace_into_node.rs
+++ b/crates/ide_db/src/syntax_helpers/insert_whitespace_into_node.rs
@@ -88,7 +88,7 @@ pub fn insert_ws_into(syn: SyntaxNode) -> SyntaxNode {
             LIFETIME_IDENT if is_next(is_text, true) => {
                 mods.push(do_ws(after, tok));
             }
-            AS_KW | DYN_KW | IMPL_KW => {
+            AS_KW | DYN_KW | IMPL_KW | CONST_KW => {
                 mods.push(do_ws(after, tok));
             }
             T![;] => {