Don't append "!" to non-bang macro name

This commit is contained in:
Ryo Yoshida 2023-04-02 19:45:39 +09:00
parent 1ebac28f0d
commit 613e008593
No known key found for this signature in database
GPG key ID: E25698A930586171
2 changed files with 23 additions and 21 deletions

View file

@ -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;