diff options
Diffstat (limited to 'editors/code')
-rw-r--r-- | editors/code/src/color_theme.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editors/code/src/color_theme.ts b/editors/code/src/color_theme.ts index cbad47f35..e4d20490b 100644 --- a/editors/code/src/color_theme.ts +++ b/editors/code/src/color_theme.ts | |||
@@ -28,7 +28,9 @@ export class ColorTheme { | |||
28 | static fromRules(rules: TextMateRule[]): ColorTheme { | 28 | static fromRules(rules: TextMateRule[]): ColorTheme { |
29 | const res = new ColorTheme(); | 29 | const res = new ColorTheme(); |
30 | for (const rule of rules) { | 30 | for (const rule of rules) { |
31 | const scopes = typeof rule.scope === 'string' | 31 | const scopes = typeof rule.scope === 'undefined' |
32 | ? [] | ||
33 | : typeof rule.scope === 'string' | ||
32 | ? [rule.scope] | 34 | ? [rule.scope] |
33 | : rule.scope; | 35 | : rule.scope; |
34 | for (const scope of scopes) { | 36 | for (const scope of scopes) { |