Allow each theme to style all aspects of syntax highlighting
Previously, some syntax highlights were controlled in editor.ts, and shared across all themes. Co-authored-by: Keith Simmons <keith@zed.dev>
This commit is contained in:
co-authored by
Keith Simmons
parent
f0c6a6ad18
commit
d330f909e6
@@ -17,7 +17,7 @@ type SnakeCased<Type> = {
|
||||
export default function snakeCaseTree<T>(object: T): SnakeCased<T> {
|
||||
const snakeObject: any = {};
|
||||
for (const key in object) {
|
||||
snakeObject[snakeCase(key)] = snakeCaseValue(object[key]);
|
||||
snakeObject[snakeCase(key, { keepSpecialCharacters: true })] = snakeCaseValue(object[key]);
|
||||
}
|
||||
return snakeObject;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user