emacs-diffs
[Top][All Lists]
Advanced

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

master bd10c3cfa2 5/7: Correctly fontify types in typeof() expression in


From: Yuan Fu
Subject: master bd10c3cfa2 5/7: Correctly fontify types in typeof() expression in csharp-ts-mode
Date: Sat, 26 Nov 2022 21:36:30 -0500 (EST)

branch: master
commit bd10c3cfa29af24295f067b08a0c9d6a4fd02736
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Yuan Fu <casouri@gmail.com>

    Correctly fontify types in typeof() expression in csharp-ts-mode
    
    * lisp/progmodes/csharp-mode.el (csharp-ts-mode--font-lock-settings):
    Add new pattern.
---
 lisp/progmodes/csharp-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/csharp-mode.el b/lisp/progmodes/csharp-mode.el
index d794bc854f..a684e5d09d 100644
--- a/lisp/progmodes/csharp-mode.el
+++ b/lisp/progmodes/csharp-mode.el
@@ -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



reply via email to

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