From ed93f2feed488268cbdeaf017c66aca39915759f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jostein=20Kj=C3=B8nigsen?= Date: Mon, 28 Nov 2022 13:16:25 +0100 Subject: [PATCH 3/3] lisp/progmodes/csharp-mode.el: Improve fontification for catch-statements. --- lisp/progmodes/csharp-mode.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lisp/progmodes/csharp-mode.el b/lisp/progmodes/csharp-mode.el index 48da6035dc7..3da3079f089 100644 --- a/lisp/progmodes/csharp-mode.el +++ b/lisp/progmodes/csharp-mode.el @@ -790,6 +790,12 @@ csharp-ts-mode--font-lock-settings (invocation_expression (member_access_expression (identifier) @font-lock-function-name-face)) + (catch_declaration + ((identifier) @font-lock-type-face)) + (catch_declaration + ((identifier) @font-lock-type-face + (identifier) @font-lock-variable-name-face)) + (variable_declaration (identifier) @font-lock-type-face) (variable_declarator (identifier) @font-lock-variable-name-face) -- 2.37.2