diff options
Diffstat (limited to 'xtask/src')
-rw-r--r-- | xtask/src/codegen/gen_syntax.rs | 4 | ||||
-rw-r--r-- | xtask/src/release.rs | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/xtask/src/codegen/gen_syntax.rs b/xtask/src/codegen/gen_syntax.rs index 200e8aa50..733493fef 100644 --- a/xtask/src/codegen/gen_syntax.rs +++ b/xtask/src/codegen/gen_syntax.rs | |||
@@ -247,14 +247,14 @@ fn generate_nodes(kinds: KindsSrc<'_>, grammar: &AstSrc) -> Result<String> { | |||
247 | #(#display_impls)* | 247 | #(#display_impls)* |
248 | }; | 248 | }; |
249 | 249 | ||
250 | let ast = ast.to_string().replace("T ! [ ", "T![").replace(" ] )", "])"); | 250 | let ast = ast.to_string().replace("T ! [", "T!["); |
251 | 251 | ||
252 | let mut res = String::with_capacity(ast.len() * 2); | 252 | let mut res = String::with_capacity(ast.len() * 2); |
253 | 253 | ||
254 | let mut docs = | 254 | let mut docs = |
255 | grammar.nodes.iter().map(|it| &it.doc).chain(grammar.enums.iter().map(|it| &it.doc)); | 255 | grammar.nodes.iter().map(|it| &it.doc).chain(grammar.enums.iter().map(|it| &it.doc)); |
256 | 256 | ||
257 | for chunk in ast.split("# [ pretty_doc_comment_placeholder_workaround ]") { | 257 | for chunk in ast.split("# [pretty_doc_comment_placeholder_workaround] ") { |
258 | res.push_str(chunk); | 258 | res.push_str(chunk); |
259 | if let Some(doc) = docs.next() { | 259 | if let Some(doc) = docs.next() { |
260 | write_doc_comment(&doc, &mut res); | 260 | write_doc_comment(&doc, &mut res); |
diff --git a/xtask/src/release.rs b/xtask/src/release.rs index 7fa0966aa..3aab29801 100644 --- a/xtask/src/release.rs +++ b/xtask/src/release.rs | |||
@@ -37,7 +37,8 @@ Release: release:{}[] | |||
37 | 37 | ||
38 | == Sponsors | 38 | == Sponsors |
39 | 39 | ||
40 | **Become a sponsor:** https://opencollective.com/rust-analyzer/[opencollective.com/rust-analyzer] | 40 | **Become a sponsor:** On https://opencollective.com/rust-analyzer/[OpenCollective] or |
41 | https://github.com/sponsors/rust-analyzer[GitHub Sponsors]. | ||
41 | 42 | ||
42 | == New Features | 43 | == New Features |
43 | 44 | ||