(e)
| 37 | "string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{ |
| 38 | o._collapse(e)})))}}class l extends o{constructor(e){super(),this.options=e} |
| 39 | addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){ |
| 40 | this.closeNode()}__addSublanguage(e,n){const t=e.root |
| 41 | ;n&&(t.scope="language:"+n),this.add(t)}toHTML(){ |
| 42 | return new r(this,this.options).value()}finalize(){ |