]> git.eshelyaron.com Git - emacs.git/commitdiff
Correctly fontify types in typeof() expression in csharp-ts-mode
authorJostein Kjønigsen <jostein@kjonigsen.net>
Fri, 25 Nov 2022 19:15:06 +0000 (20:15 +0100)
committerYuan Fu <casouri@gmail.com>
Sat, 26 Nov 2022 23:40:24 +0000 (15:40 -0800)
* lisp/progmodes/csharp-mode.el (csharp-ts-mode--font-lock-settings):
Add new pattern.

lisp/progmodes/csharp-mode.el

index d794bc854fe6b25097c34a8b6b2eb26120e1db1a..a684e5d09dbd355c1bddcb282436d335a4c3ae1e 100644 (file)
@@ -812,7 +812,8 @@ compilation and evaluation time conflicts."
      (cast_expression (identifier) @font-lock-type-face)
      ["operator"] @font-lock-type-face
      (type_parameter_constraints_clause
-      target: (identifier) @font-lock-type-face))
+      target: (identifier) @font-lock-type-face)
+     (type_of_expression (identifier) @font-lock-type-face))
    :language 'c-sharp
    :feature 'definition
    :override t