emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/csharp-mode 3fc339e 310/459: Add fontification to funct


From: ELPA Syncer
Subject: [elpa] externals/csharp-mode 3fc339e 310/459: Add fontification to functions
Date: Sun, 22 Aug 2021 13:59:51 -0400 (EDT)

branch: externals/csharp-mode
commit 3fc339ed2549feaf5dd9dc092702cfcaf6a136c9
Author: Theodor Thornhill <theo@thornhill.no>
Commit: Theodor Thornhill <theo@thornhill.no>

    Add fontification to functions
---
 csharp-mode.el | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/csharp-mode.el b/csharp-mode.el
index 2cd428f..a643bbf 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -53,12 +53,6 @@
   csharp (append '((?@ . "w"))
                 (c-lang-const c-identifier-syntax-modifications)))
 
-(c-lang-defconst c-basic-matchers-after
-  csharp (append nil
-     ;; cc-mode defaults
-     (c-lang-const c-basic-matchers-after)))
-
-
 (c-lang-defconst c-symbol-start
   csharp (concat "[" c-alpha "_@]"))
 
@@ -298,6 +292,15 @@ casts and declarations are fontified.  Used on level 2 and 
higher."
            (eval . (list "\\(!\\)[^=]" 1 c-negation-char-face-name))
            ))
 
+(c-lang-defconst c-basic-matchers-after
+  csharp (append
+          ;; merge with cc-mode defaults
+          (c-lang-const c-basic-matchers-after)
+
+          ;; function names
+          `(("\\.\\([A-Za-z0-9_]+\\)(" 1 font-lock-function-name-face t))
+          ))
+
 (defcustom csharp-font-lock-extra-types
   (list (concat "[" c-upper "]\\sw*[" c-lower "]\\sw"))
   (c-make-font-lock-extra-types-blurb "C#" "csharp-mode" (concat))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]