Function
textMateScopeToCodeMirrorStyle
(scopeSegments, style = tmToCm)
Source from the content-addressed store, hash-verified
| 21480 | } |
| 21481 | } |
| 21482 | const textMateScopeToCodeMirrorStyle = (scopeSegments, style = tmToCm) => { |
| 21483 | const matchingBranch = style[scopeSegments.shift()] |
| 21484 | return matchingBranch ? textMateScopeToCodeMirrorStyle(scopeSegments, matchingBranch) || matchingBranch.$ || null : null |
| 21485 | } |
| 21486 | class ParsersCodeMirrorMode { |
| 21487 | constructor(name, getParsedProgramFn, codeMirrorLib = undefined) { |
| 21488 | this._name = name |
Tested by
no test coverage detected