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.

Use `syntax` as merged name instead of `mergedSyntax`

Nate Butler4f307c76019b
diff --git a/styles/src/styleTree/editor.ts b/styles/src/styleTree/editor.ts
index c3030579080..810b8da5286 100644
--- a/styles/src/styleTree/editor.ts
+++ b/styles/src/styleTree/editor.ts
@@ -38,7 +38,7 @@ export default function editor(colorScheme: ColorScheme) {
}
}
- const syntax: Syntax = {
+ const defaultSyntax: Syntax = {
primary: {
color: colorScheme.ramps.neutral(1).hex(),
weight: fontWeights.normal,
@@ -134,10 +134,10 @@ export default function editor(colorScheme: ColorScheme) {
function createSyntax(colorScheme: ColorScheme): Syntax {
if (!colorScheme.syntax) {
- return syntax
+ return defaultSyntax
}
- return deepmerge<Syntax, Partial<ThemeSyntax>>(syntax, colorScheme.syntax, {
+ return deepmerge<Syntax, Partial<ThemeSyntax>>(defaultSyntax, colorScheme.syntax, {
arrayMerge: (destinationArray, sourceArray) => [
...destinationArray,
...sourceArray,
@@ -145,7 +145,7 @@ export default function editor(colorScheme: ColorScheme) {
});
}
- const mergedSyntax = createSyntax(colorScheme)
+ const syntax = createSyntax(colorScheme)
return {
textColor: syntax.primary.color,
@@ -303,6 +303,6 @@ export default function editor(colorScheme: ColorScheme) {
color: borderColor(layer),
},
},
- syntax: mergedSyntax,
+ syntax,
}
}