(style, options)
| 5695 | // and also looks for line-wide styles. |
| 5696 | var styleToClassCache = {}, styleToClassCacheWithMode = {}; |
| 5697 | function interpretTokenStyle(style, options) { |
| 5698 | if (!style || /^\s*$/.test(style)) return null; |
| 5699 | var cache = options.addModeClass ? styleToClassCacheWithMode : styleToClassCache; |
| 5700 | return cache[style] || |
| 5701 | (cache[style] = style.replace(/\S+/g, "cm-$&")); |
| 5702 | } |
| 5703 | |
| 5704 | // Render the DOM representation of the text of a line. Also builds |
| 5705 | // up a 'line map', which points at the DOM nodes that represent |
no outgoing calls
no test coverage detected
searching dependent graphs…