(key, value)
| 35 | } |
| 36 | |
| 37 | function setCache(key, value) { |
| 38 | if (highlightCache.size >= MAX_CACHE_SIZE) { |
| 39 | const firstKey = highlightCache.keys().next().value; |
| 40 | highlightCache.delete(firstKey); |
| 41 | } |
| 42 | highlightCache.set(key, value); |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * Generates CSS styles for syntax highlighting tokens |
no test coverage detected