From b8790e320e10daf42feaffac0f40c4b7b34903dd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jostein=20Kj=C3=B8nigsen?= Date: Tue, 6 Dec 2022 09:40:03 +0100 Subject: [PATCH] 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) -- 2.39.2