Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Add missing `variable` property to `Syntax`

Nate Butler40c2409b8079
diff --git a/styles/src/themes/common/colorScheme.ts b/styles/src/themes/common/colorScheme.ts
index ad2de9b62d9..91e8f5a0201 100644
--- a/styles/src/themes/common/colorScheme.ts
+++ b/styles/src/themes/common/colorScheme.ts
@@ -160,7 +160,7 @@ export interface Syntax {
"type.builtin": SyntaxHighlightStyle
// == Values
-
+ variable: SyntaxHighlightStyle,
// racket: lang_name
"variable.builtin": SyntaxHighlightStyle
// this, ...
diff --git a/styles/src/themes/common/syntax.ts b/styles/src/themes/common/syntax.ts
index 9c0b61447e9..a1c82ec7e92 100644
--- a/styles/src/themes/common/syntax.ts
+++ b/styles/src/themes/common/syntax.ts
@@ -120,6 +120,9 @@ function buildDefaultSyntax(colorScheme: ColorScheme): Syntax {
"type.builtin": {
color: color.type,
},
+ variable: {
+ color: color.primary,
+ },
"variable.builtin": {
color: colorScheme.ramps.blue(0.5).hex(),
},