@startumlpackage AAAA { component C1 component S1 component S2 C1 -left- S1 C1 -[hidden]- S2'Remove next line comment'S1 -left[hidden]- S2}@enduml
If we remove comment to the red line, there is a syntax error
http://www.plantuml.com/plantuml/png/SoWkIImgAStDuIf8JCvEJ4zLS0G2XMek1GM5vFpSWloyrBmI1MT3L7umEjy8o0UgKj3DIKqhqGNAm_ZH6PafAQbviReWDUf1gRdvPQaAUQaL9GevcNcf82DoWGPmgGT3zIAhh-LoICrB0ReD0000
(--------)
Thanks for the S1 -[hidden]left- S2
You should use:
@startumlpackage AAAA { component C1 component S1 component S2 C1 -left- S1 C1 -[hidden]- S2'Remove next line commentS1 -[hidden]left- S2}@enduml