MCPcopy Create free account
hub / github.com/FSoft-AI4Code/HyperAgent / h

Function h

hyperagent-ext/media/scripts/highlight.min.js:180–186  ·  view source on GitHub ↗
(e,n,t)

Source from the content-addressed store, hash-verified

178 languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",
179 cssSelector:"pre code",languages:null,__emitter:c};function _(e){
180 return d.noHighlightRe.test(e)}function h(e,n,t){let a="",i=""
181 ;"object"==typeof n?(a=e,
182 t=n.ignoreIllegals,i=n.language):(q("10.7.0","highlight(lang, code, ...args) has been deprecated."),
183 q("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),
184 i=e,a=n),void 0===t&&(t=!0);const r={code:a,language:i};x("before:highlight",r)
185 ;const s=r.result?r.result:f(r.language,r.code,t)
186 ;return s.code=r.code,x("after:highlight",s),s}function f(e,n,i,r){
187 const l=Object.create(null);function c(){if(!k.keywords)return void M.addText(S)
188 ;let e=0;k.keywordPatternRe.lastIndex=0;let n=k.keywordPatternRe.exec(S),t=""
189 ;for(;n;){t+=S.substring(e,n.index)

Callers 1

yFunction · 0.70

Calls 3

qFunction · 0.85
xFunction · 0.70
fFunction · 0.70

Tested by

no test coverage detected