]> git.eshelyaron.com Git - emacs.git/commitdiff
Further generic-related improvements in csharp-ts-mode (bug#60376)
authorJostein Kjønigsen <jostein@kjonigsen.net>
Sun, 1 Jan 2023 19:46:02 +0000 (20:46 +0100)
committerYuan Fu <casouri@gmail.com>
Fri, 6 Jan 2023 05:54:23 +0000 (22:54 -0700)
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

index 473e8f49fd39e9f88b8f0afe0110dbf72bcd1843..79afd7f91dcfaeaa523b971975370f00a7e9a50c 100644 (file)
@@ -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)