(style, options)
| 6926 | // and also looks for line-wide styles. |
| 6927 | var styleToClassCache = {}, styleToClassCacheWithMode = {}; |
| 6928 | function interpretTokenStyle(style, options) { |
| 6929 | if (!style || /^\s*$/.test(style)) return null; |
| 6930 | var cache = options.addModeClass ? styleToClassCacheWithMode : styleToClassCache; |
| 6931 | return cache[style] || |
| 6932 | (cache[style] = style.replace(/\S+/g, "cm-$&")); |
| 6933 | } |
| 6934 | |
| 6935 | // Render the DOM representation of the text of a line. Also builds |
| 6936 | // up a 'line map', which points at the DOM nodes that represent |
no test coverage detected