Add basic support for ruby

Co-authored-by: Kay Simmons <kay@zed.dev>
This commit is contained in:
Max Brunsfeld
2022-11-03 15:52:33 -07:00
co-authored by Kay Simmons
parent 9f3ea0c87f
commit d222904471
13 changed files with 349 additions and 7 deletions
+8 -7
View File
@@ -1,10 +1,6 @@
import { fontWeights } from "../common";
import { withOpacity } from "../utils/color";
import {
ColorScheme,
Layer,
StyleSets,
} from "../themes/common/colorScheme";
import { ColorScheme, Layer, StyleSets } from "../themes/common/colorScheme";
import {
background,
border,
@@ -50,6 +46,11 @@ export default function editor(colorScheme: ColorScheme) {
color: colorScheme.ramps.neutral(1).hex(),
weight: fontWeights.normal,
},
"variable.special": {
// Highlights for self, this, etc
color: colorScheme.ramps.blue(0.7).hex(),
weight: fontWeights.normal,
},
comment: {
color: colorScheme.ramps.neutral(0.71).hex(),
weight: fontWeights.normal,
@@ -270,9 +271,9 @@ export default function editor(colorScheme: ColorScheme) {
background: withOpacity(background(layer, "inverted"), 0.4),
border: {
width: 1,
color: borderColor(layer, 'variant'),
color: borderColor(layer, "variant"),
},
}
},
},
compositionMark: {
underline: {