From: Jostein Kjønigsen Date: Thu, 24 Nov 2022 21:41:29 +0000 (-0800) Subject: Improve csharp-ts-mode fontification X-Git-Tag: emacs-29.0.90~1525 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b0fa3b1a1f31c158131325f0f451c960ec54d938;p=emacs.git Improve csharp-ts-mode fontification * lisp/progmodes/csharp-mode.el (csharp-ts-mode--font-lock-settings): Add more pattern for definition feature. --- diff --git a/lisp/progmodes/csharp-mode.el b/lisp/progmodes/csharp-mode.el index 3ea894733fe..af8a4a81061 100644 --- a/lisp/progmodes/csharp-mode.el +++ b/lisp/progmodes/csharp-mode.el @@ -840,6 +840,18 @@ compilation and evaluation time conflicts." (method_declaration type: (_) @font-lock-type-face) (method_declaration name: (_) @font-lock-function-name-face) + (invocation_expression + (member_access_expression + (generic_name (identifier) @font-lock-function-name-face))) + (invocation_expression + (member_access_expression + ((identifier) @font-lock-variable-name-face + (identifier) @font-lock-function-name-face))) + (invocation_expression + (identifier) @font-lock-function-name-face) + (invocation_expression + (member_access_expression (identifier) @font-lock-function-name-face)) + (variable_declaration (identifier) @font-lock-type-face) (variable_declarator (identifier) @font-lock-variable-name-face)