From f6f6d066913c532b55a97bc6866898773e8bc5ba Mon Sep 17 00:00:00 2001 From: winston Date: Mon, 30 Oct 2023 12:54:13 +0100 Subject: [PATCH] fix(syntax): Rust closure parameters --- src/theme/tokens/rust.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/theme/tokens/rust.ts b/src/theme/tokens/rust.ts index 5aa0431f..f47a06a8 100644 --- a/src/theme/tokens/rust.ts +++ b/src/theme/tokens/rust.ts @@ -164,11 +164,18 @@ const tokens = (context: ThemeContext): TextmateColors => { }, { name: "Rust function parameters", - scope: "meta.function.definition.rust variable.other.rust", + scope: ["meta.function.definition.rust variable.other.rust"], settings: { foreground: palette.maroon, }, }, + { + name: "Rust closure variables", + scope: "meta.function.call.rust variable.other.rust", + settings: { + foreground: palette.text, + }, + }, { name: "Rust self", scope: "variable.language.self.rust",