From: Jostein Kjønigsen Date: Tue, 6 Dec 2022 08:40:03 +0000 (+0100) Subject: Consistent fontification of using-directives in csharp-ts-mode X-Git-Tag: emacs-29.0.90~1330 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b8790e320e1;p=emacs.git Consistent fontification of using-directives in csharp-ts-mode * lisp/progmodes/csharp-mode.el (csharp-ts-mode--font-lock-settings): New rules. --- 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)