1
0
mirror of https://github.com/fadden/6502bench.git synced 2025-07-05 20:23:56 +00:00

Eliminate BoxLineCommentDelimiter

This was used to prefix boxed lines with a comment delimiter, but
in practice we just need to do this whenever the box character
doesn't match the full-line comment delimiter.

This has no effect on generated assembly output, but the on-screen
(and exported HTML) form will now reflect the current settings.
This commit is contained in:
Andy McFadden
2024-07-04 10:32:24 -07:00
parent 54d559ad50
commit 14cacb4274
7 changed files with 36 additions and 35 deletions

View File

@ -488,12 +488,11 @@ namespace SourceGen {
Debug.WriteLine("ApplyAppSettings...");
AppSettings settings = AppSettings.Global;
// Set up the formatter.
// Set up the formatter with default values.
mFormatterConfig = new Formatter.FormatConfig();
AsmGen.GenCommon.ConfigureFormatterFromSettings(AppSettings.Global,
ref mFormatterConfig);
mFormatterConfig.EndOfLineCommentDelimiter = ";";
mFormatterConfig.BoxLineCommentDelimiter = string.Empty;
mFormatterConfig.NonUniqueLabelPrefix =
settings.GetString(AppSettings.FMT_NON_UNIQUE_LABEL_PREFIX, string.Empty);