(name: string)
| 105 | } |
| 106 | |
| 107 | function isSkipContext(name: string): boolean { |
| 108 | const lower = name.toLowerCase(); |
| 109 | return ( |
| 110 | lower.includes("string") || |
| 111 | lower.includes("comment") || |
| 112 | lower.includes("regexp") || |
| 113 | lower.includes("regex") || |
| 114 | lower.includes("regular") |
| 115 | ); |
| 116 | } |
| 117 | |
| 118 | function buildTheme(colors: readonly string[]) { |
| 119 | const themeSpec: Record<string, { color: string }> = {}; |