summaryrefslogtreecommitdiff
path: root/lisp/progmodes/csharp-mode.el
diff options
context:
space:
mode:
authorJostein Kjønigsen <jostein@kjonigsen.net>2022-12-06 09:40:03 +0100
committerYuan Fu <casouri@gmail.com>2022-12-06 13:43:58 -0800
commitb8790e320e10daf42feaffac0f40c4b7b34903dd (patch)
treefee2096162ec84546df0fb6e9eb5ab9835ad92dc /lisp/progmodes/csharp-mode.el
parent5257b9cda43ea6f87843a9dcfad067a1a4c0bb8e (diff)
downloademacs-b8790e320e10daf42feaffac0f40c4b7b34903dd.tar.gz
emacs-b8790e320e10daf42feaffac0f40c4b7b34903dd.tar.bz2
emacs-b8790e320e10daf42feaffac0f40c4b7b34903dd.zip
Consistent fontification of using-directives in csharp-ts-mode
* lisp/progmodes/csharp-mode.el (csharp-ts-mode--font-lock-settings): New rules.
Diffstat (limited to 'lisp/progmodes/csharp-mode.el')
-rw-r--r--lisp/progmodes/csharp-mode.el5
1 files changed, 4 insertions, 1 deletions
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)