KSP-ModularManagement / ModuleManager

ModuleManager is a mod that let you write patches that edit other parts at load time.
http://ksp.lisias.net/add-ons/ModuleManager
GNU General Public License v3.0
11 stars 5 forks source link

Extra "}" ends processing of the config file #6

Open Lisias opened 4 years ago

Lisias commented 4 years ago

The following config file

@PART[some-part-1]
{
    %MODULE[something]
    {
        foo = bar
    }
}

@PART[some-part-2]
{
    %MODULE[something]
    {
        foo = bar
    }
}

// Note this extra brace
}
// end note

@PART[some-part-3]
{
    %MODULE[something]
    {
        foo = bar
    }
}

Renders the some-part-3 patch unreachable.

This is likely something on the KSP file parser, as some-part-3 patch is not being listed on the KSP.log - but I need to document this krap somewhere, and this issue looks a good place.