emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 699711786a: Further generic-related improvements in csharp-ts-m


From: Yuan Fu
Subject: emacs-29 699711786a: Further generic-related improvements in csharp-ts-mode (bug#60376)
Date: Fri, 6 Jan 2023 00:55:24 -0500 (EST)

branch: emacs-29
commit 699711786ac7aa6d6524467076a45568e283e061
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Yuan Fu <casouri@gmail.com>

    Further generic-related improvements in csharp-ts-mode (bug#60376)
    
    This is an additional patch for bug#60376.
    
    * lisp/progmodes/csharp-mode.el (csharp-ts-mode--font-lock-settings):
    New rules.
---
 lisp/progmodes/csharp-mode.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lisp/progmodes/csharp-mode.el b/lisp/progmodes/csharp-mode.el
index 473e8f49fd..79afd7f91d 100644
--- a/lisp/progmodes/csharp-mode.el
+++ b/lisp/progmodes/csharp-mode.el
@@ -773,9 +773,12 @@ compilation and evaluation time conflicts."
      (array_type
       (identifier) @font-lock-type-face)
      (cast_expression (identifier) @font-lock-type-face)
+     (cast_expression (generic_name (identifier) @font-lock-type-face))
      ["operator"] @font-lock-type-face
      (type_parameter_constraints_clause
       target: (identifier) @font-lock-type-face)
+     (type_constraint type: (identifier) @font-lock-type-face)
+     (type_constraint type: (generic_name (identifier) @font-lock-type-face))
      (type_of_expression (identifier) @font-lock-type-face)
      (object_creation_expression
       type: (identifier) @font-lock-type-face)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]