-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Description
Summary
The javascript and typescript language highlight files assign the @operator token to ? and : ternary operators, but Zed isn't applying theme colors to these operators.
Description
See summary. The relevant language highlight files are here:
- https://github.com/zed-industries/zed/blob/main/crates/languages/src/javascript/highlights.scm#L163
- https://github.com/zed-industries/zed/blob/main/crates/languages/src/typescript/highlights.scm#L175
Steps to reproduce:
- In
settings.json, configure a theme override forsyntax.operator, e.g.:
"theme_overrides": {
"Night Owl Dark": {
"syntax": {
"operator": {
"color": "#c792ea",
"font_style": null,
"font_weight": null
}
}
}- In a JS or TS file, write a ternary expression, e.g.
export const foo = true ? 1 : 0;
Expected Behavior:
- The
?and:should receive the color specified insettings.json.
Actual Behavior:
- Observe that the
?and:do not receive the color specified insettings.json.
Zed Version and System Specs
Zed: v0.210.4 (Zed)
OS: macOS 15.7.2
Memory: 32 GiB
Architecture: aarch64
Metadata
Metadata
Assignees
Labels
No labels