]> git.eshelyaron.com Git - emacs.git/commitdiff
Consistent fontification of using-directives in csharp-ts-mode
authorJostein Kjønigsen <jostein@kjonigsen.net>
Tue, 6 Dec 2022 08:40:03 +0000 (09:40 +0100)
committerYuan Fu <casouri@gmail.com>
Tue, 6 Dec 2022 21:43:58 +0000 (13:43 -0800)
* lisp/progmodes/csharp-mode.el (csharp-ts-mode--font-lock-settings):
New rules.

lisp/progmodes/csharp-mode.el

index 054dabfed07077a947bfec854ea44c86b30ba0d7..bdddb46e7272e8ad5d2bc8b7288cde49e1e0e51c 100644 (file)
@@ -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)