From add7a617616f7979e8da2cf120e0b070f66a0b85 Mon Sep 17 00:00:00 2001 From: fiveseven <44082628+fiveseven-lambda@users.noreply.github.com> Date: Fri, 13 Jun 2025 09:31:20 +0900 Subject: [PATCH] avoid illegal names --- src/commands.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands.ts b/src/commands.ts index b76036ba..6da89bee 100644 --- a/src/commands.ts +++ b/src/commands.ts @@ -206,6 +206,7 @@ function createDirectives(fileUri: vscode.Uri): Array { ); macroName = macroPrefix + macroSubfolderPrefix + macroName + macroSuffix; + macroName = macroName.replace(/^E/, "E_"); const spaces = " ".repeat(spacesAfterEndif); let endifLine = "#endif";