From d560dc5044a69144e45e13ee787b196afa28ba8b Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Sat, 18 Feb 2023 23:51:17 +0200 Subject: [PATCH] (rust-ts-mode--font-lock-settings): Highlight closure parameters * lisp/progmodes/rust-ts-mode.el (rust-ts-mode--font-lock-settings): Highlight closure parameters. --- lisp/progmodes/rust-ts-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/progmodes/rust-ts-mode.el b/lisp/progmodes/rust-ts-mode.el index ec823d09d8c..e53cdb5ce7d 100644 --- a/lisp/progmodes/rust-ts-mode.el +++ b/lisp/progmodes/rust-ts-mode.el @@ -158,6 +158,7 @@ (macro_definition (identifier) @font-lock-preprocessor-face) (field_declaration name: (field_identifier) @font-lock-property-face) (parameter pattern: (_) @rust-ts-mode--fontify-pattern) + (closure_parameters (_) @rust-ts-mode--fontify-pattern) (let_declaration pattern: (_) @rust-ts-mode--fontify-pattern) (for_expression pattern: (_) @rust-ts-mode--fontify-pattern) (let_condition pattern: (_) @rust-ts-mode--fontify-pattern)