MCPcopy Create free account
hub / github.com/breck7/scroll / textMateScopeToCodeMirrorStyle

Function textMateScopeToCodeMirrorStyle

external/.scrollLibs.js:21482–21485  ·  view source on GitHub ↗
(scopeSegments, style = tmToCm)

Source from the content-addressed store, hash-verified

21480 }
21481}
21482const textMateScopeToCodeMirrorStyle = (scopeSegments, style = tmToCm) => {
21483 const matchingBranch = style[scopeSegments.shift()]
21484 return matchingBranch ? textMateScopeToCodeMirrorStyle(scopeSegments, matchingBranch) || matchingBranch.$ || null : null
21485}
21486class ParsersCodeMirrorMode {
21487 constructor(name, getParsedProgramFn, codeMirrorLib = undefined) {
21488 this._name = name

Callers 1

_getAtomStyleMethod · 0.85

Calls 1

shiftMethod · 0.80

Tested by

no test coverage detected