Glad you got things working and saved your project. Keep in mind that each file is unique. My description for the lines to remove or look for in that other post might not apply to your file exactly.
Here is some more info that might help in the future.
Layers in the file format are structured with "nesting" or indentation based on what level the layer is at. If you have any experience with HTML or code structures it is like that. A top level layer in the file format will start flush left and not indented.
A group layer has it's own layer information at the start, then later on layers inside the group are indented with it's own information. Group layers inside group layers (nested layers) will each indent at each level of nesting.
It can get tricky to find the start and end of layers in the file format with lots of nested layers.
Here's how layers are "grouped" in the file format:
All layers start with the layer_type followed by an opening curly bracket. If deleting a layer you must select the layer_type line before the curly bracket. The layer_type is part of that layer.
If a layer is the FIRST sub layer inside any group type layer then you will see this:
The indenting indicates that the sub layers are now inside a group layer. Even if the group layer is a top level layer the ### sub-layers text will be indented. If the sub layer was also another group further down you would see another sub-layers text with another level of indentation and so on and so on.
A layer is "closed" with the closing curly bracket at the end of that layer information. If that layer is the LAST layer in a group there will be TWO closing curly brackets with offset indenting. The first closing curly bracket is to close the last sub layer in the group. The second closing curly bracket is for the group layer.
These series of curly brackets indicating the start and end of layers can be indented/nested depending on the structure of your AS file. The samples above show a top level layer. All top level layers start out without any indenting.
Don't get "square" and "curly" brackets confused. They are different. I can't remember for certain but I think the curly brackets are only used for layer grouping. Square brackets are used to group data within the layer information.
If you have a good text editor like jEdit you can easily find the start and end of a layer. The key is to find the start of the layer and then search for the next closing curly bracket with the same indentation of the opening bracket. If there is no closing curly bracket that layer is "broken" and is probably at the end of the file.
In every case if the file is not closed properly with a closing curly bracket search back up to the first opening curly bracket and that is the broken layer. I would not attempt to just "add" a closing bracket because if the file was broken there is probably other things missing from the data that you can't just type back in.
-vern