mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-23 20:04:21 +00:00
Don't append "!" to non-bang macro name
This commit is contained in:
parent
1ebac28f0d
commit
613e008593
2 changed files with 23 additions and 21 deletions
|
@ -699,7 +699,7 @@ export function viewFullCrateGraph(ctx: CtxInit): Cmd {
|
|||
// The contents of the file come from the `TextDocumentContentProvider`
|
||||
export function expandMacro(ctx: CtxInit): Cmd {
|
||||
function codeFormat(expanded: ra.ExpandedMacro): string {
|
||||
let result = `// Recursive expansion of ${expanded.name}! macro\n`;
|
||||
let result = `// Recursive expansion of ${expanded.name} macro\n`;
|
||||
result += "// " + "=".repeat(result.length - 3);
|
||||
result += "\n\n";
|
||||
result += expanded.expansion;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue