[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode f774b55 311/459: Add test for function font
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode f774b55 311/459: Add test for function fontification |
Date: |
Sun, 22 Aug 2021 13:59:51 -0400 (EDT) |
branch: externals/csharp-mode
commit f774b55b6d958c6939a4f74bb725d8b0bb184bfd
Author: Theodor Thornhill <theo@thornhill.no>
Commit: Theodor Thornhill <theo@thornhill.no>
Add test for function fontification
Also, support generic typed functions (naively)
---
csharp-mode-tests.el | 8 ++++++++
csharp-mode.el | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/csharp-mode-tests.el b/csharp-mode-tests.el
index 865d277..f18cf02 100644
--- a/csharp-mode-tests.el
+++ b/csharp-mode-tests.el
@@ -90,6 +90,14 @@
"var package = true;"
"package" 'font-lock-variable-name-face))
+(ert-deftest fontification-of-functions ()
+ (require 'assess)
+ (assess-face-in-text= "var foo = bar.Baz()"
+ "Baz" 'font-lock-function-name-face)
+ (assess-face-in-text= "var foo = bar.Baz<Quux>()"
+ "Baz" 'font-lock-function-name-face
+ "Quux" 'font-lock-type-face))
+
(ert-deftest fontification-of-import ()
(require 'assess)
(assess-face-in-text=
diff --git a/csharp-mode.el b/csharp-mode.el
index a643bbf..3a106f7 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -298,7 +298,7 @@ casts and declarations are fontified. Used on level 2 and
higher."
(c-lang-const c-basic-matchers-after)
;; function names
- `(("\\.\\([A-Za-z0-9_]+\\)(" 1 font-lock-function-name-face t))
+ `(("\\.\\([A-Za-z0-9_]+\\)[<(]" 1 font-lock-function-name-face t))
))
(defcustom csharp-font-lock-extra-types
- [elpa] externals/csharp-mode f640019 285/459: Fix display of ‘package’ as any sort of name, (continued)
- [elpa] externals/csharp-mode f640019 285/459: Fix display of ‘package’ as any sort of name, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7cb8d05 288/459: Update CI settings:, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 44740eb 282/459: Fix font lock breaks on strings #151, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f6314e5 295/459: Merge pull request #166 from josteink/rework, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode da8eab4 290/459: const is a modifier, not a type., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 5a7828f 298/459: Add xml like doc comments font locking, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode e0a2975 296/459: This is clearly a new version! Lets make it 0.10.0, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 8af265d 302/459: Change licenses inside the .el files also, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode a753601 308/459: Add delegate to keywords, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode b928233 304/459: Add matchers-before and matchers-after, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f774b55 311/459: Add test for function fontification,
ELPA Syncer <=
- [elpa] externals/csharp-mode d458586 316/459: Use c-typeof-kwds, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode d9d257c 325/459: Add compilation-mode support for dotnet core &/ nuget errors., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 15bc3cb 326/459: Add support for dotnet test failures., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f4a0693 328/459: Richer font highlighting, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 82bcec9 329/459: Add missing LinQ keywords, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 91c0f3c 330/459: Extract type matcher into defconst, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 098aba3 334/459: Fix improper handling of "new" in buffers., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode fa2e596 348/459: Update README.org, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 61bf8e5 352/459: Update build.yml, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 2fe22ec 363/459: Update build.yml, ELPA Syncer, 2021/08/22