From: Dmitry Gutov Date: Sat, 18 Feb 2023 21:51:17 +0000 (+0200) Subject: (rust-ts-mode--font-lock-settings): Highlight closure parameters X-Git-Tag: emacs-29.0.90~400 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d560dc5044a;p=emacs.git (rust-ts-mode--font-lock-settings): Highlight closure parameters * lisp/progmodes/rust-ts-mode.el (rust-ts-mode--font-lock-settings): Highlight closure parameters. --- 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)