branch: externals/csharp-mode commit 3fc339ed2549feaf5dd9dc092702cfcaf6a136c9 Author: Theodor Thornhill <t...@thornhill.no> Commit: Theodor Thornhill <t...@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))