]> git.eshelyaron.com Git - emacs.git/commitdiff
(rust-ts-mode--font-lock-settings): Highlight closure parameters
authorDmitry Gutov <dgutov@yandex.ru>
Sat, 18 Feb 2023 21:51:17 +0000 (23:51 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Sat, 18 Feb 2023 21:53:11 +0000 (23:53 +0200)
* lisp/progmodes/rust-ts-mode.el
(rust-ts-mode--font-lock-settings): Highlight closure parameters.

lisp/progmodes/rust-ts-mode.el

index ec823d09d8c9cfd9006ee360f6f8557132a90dbb..e53cdb5ce7d8e7f0ff14df148f5fe6f4566a463b 100644 (file)
      (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)