MCPcopy Create free account
hub / github.com/ad-si/LuaCAD / startScope

Method startScope

website/highlight.min.js:39–39  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

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

Callers 1

gFunction · 0.80

Calls 1

openNodeMethod · 0.45

Tested by

no test coverage detected