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: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~16^2~1769 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b8790e320e10daf42feaffac0f40c4b7b34903dd;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)