Files
Seth Hillbrand cf1df9387d Fix bus name mangling with overbar/subscript/superscript formatting
When parsing bus names containing formatting markers like ~{label}, ^{label},
or _{label}, the closing brace was incorrectly being added to the parsed
prefix. For example, bus_~{label}[0..5] would produce member names like
bus_label}0 instead of bus_label0.

The bug was in ParseBusVector and ParseBusGroup: when encountering a closing
brace that ends a formatting block, the code decremented braceNesting but
then fell through to add the } character to the prefix. Fixed by adding
continue statements to skip adding the closing brace.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22873
2026-01-30 10:28:01 -08:00
..