diff --git a/crates/story/examples/code-editor.rs b/crates/story/examples/code-editor.rs
index 1c3d6edb..603f4a1d 100644
--- a/crates/story/examples/code-editor.rs
+++ b/crates/story/examples/code-editor.rs
@@ -131,9 +131,9 @@ impl Render for Example {
.id("source")
.w_full()
.flex_1()
- .font_family("Menlo")
+ .font_family("Monaco")
.p_4()
- .text_size(px(13.))
+ .text_size(px(12.))
.child(TextInput::new(&self.input_state).h_full()),
)
}
diff --git a/crates/ui/src/highlighter/themes/dark.tmTheme b/crates/ui/src/highlighter/themes/dark.tmTheme
index 8c47c716..6aabc3b4 100644
--- a/crates/ui/src/highlighter/themes/dark.tmTheme
+++ b/crates/ui/src/highlighter/themes/dark.tmTheme
@@ -110,7 +110,7 @@
name
Function Name
scope
- entity.name.function, support.function, support.function.any-method
+ entity.name.function, support.function, support.function.any-method, variable.annotation
settings
foreground
@@ -121,9 +121,9 @@
name
- Keyword
+ Keyword, self
scope
- keyword, storage
+ keyword, storage, variable.language
settings
foreground
@@ -136,7 +136,7 @@
name
Class
scope
- support.class, support.type, entity.name.class, entity.name.type.class, meta.class
+ entity, support.class, support.type, entity.name.class, entity.name.trait, meta.class
settings
foreground
@@ -296,7 +296,7 @@
name
Variable
scope
- variable.language, variable.other
+ variable.other
settings
foreground
diff --git a/crates/ui/src/highlighter/themes/light.tmTheme b/crates/ui/src/highlighter/themes/light.tmTheme
index a75a8794..1676a769 100644
--- a/crates/ui/src/highlighter/themes/light.tmTheme
+++ b/crates/ui/src/highlighter/themes/light.tmTheme
@@ -71,9 +71,9 @@
name
- Constant
+ Constant, self
scope
- constant, constant.other
+ constant, constant.other, variable.language
settings
foreground
@@ -107,6 +107,19 @@
+
+
+ name
+ Annotation
+ scope
+ variable.annotation
+ settings
+
+ foreground
+ #9D8550
+
+
+
name
@@ -137,7 +150,7 @@
name
Class
scope
- support.class, support.type, entity.name.class, entity.name.type.class, meta.class
+ entity, support.class, support.type, entity.name.class, entity.name.type.class, meta.class, entity.name.constant, entity.name.namespace
settings
foreground
@@ -191,7 +204,7 @@
name
String
scope
- string, string.quoted
+ string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.triple
settings
foreground
@@ -297,7 +310,7 @@
name
Variable
scope
- variable.language, variable.other
+ variable.other
settings
foreground