emacs-diffs
[Top][All Lists]
Advanced

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

emacs-29 b8790e320e1 4/4: Consistent fontification of using-directives i


From: Yuan Fu
Subject: emacs-29 b8790e320e1 4/4: Consistent fontification of using-directives in csharp-ts-mode
Date: Tue, 6 Dec 2022 16:44:41 -0500 (EST)

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

    Consistent fontification of using-directives in csharp-ts-mode
    
    * lisp/progmodes/csharp-mode.el (csharp-ts-mode--font-lock-settings):
    New rules.
---
 lisp/progmodes/csharp-mode.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/csharp-mode.el b/lisp/progmodes/csharp-mode.el
index 054dabfed07..bdddb46e727 100644
--- a/lisp/progmodes/csharp-mode.el
+++ b/lisp/progmodes/csharp-mode.el
@@ -748,8 +748,11 @@ compilation and evaluation time conflicts."
    :language 'c-sharp
    :feature 'definition
    :override t
-   '((qualified_name (identifier) @font-lock-variable-name-face)
+   '((qualified_name (identifier) @font-lock-type-face)
      (using_directive (identifier) @font-lock-type-face)
+     (using_directive (name_equals
+                       (identifier) @font-lock-type-face
+                       ["="] @default-face))
 
      (enum_declaration (identifier) @font-lock-type-face)
      (enum_member_declaration (identifier) @font-lock-variable-name-face)



reply via email to

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