MCPcopy Create free account
hub / github.com/danvk/webdiff / addText

Method addText

webdiff/static/js/highlight.min.js:40–40  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

38l._collapse(e)})))}}class _ extends l{constructor(e){super(),this.options=e}
39addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}
40addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const a=e.root
41;a.sublanguage=!0,a.language=t,this.add(a)}toHTML(){
42return new s(this,this.options).value()}finalize(){return!0}}function c(e){
43return RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function d(e){

Callers 1

addKeywordMethod · 0.95

Calls 1

addMethod · 0.45

Tested by

no test coverage detected