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