[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode 5bfd3d2 257/459: Fix fontification of names
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode 5bfd3d2 257/459: Fix fontification of namespaces in using-statements. |
Date: |
Sun, 22 Aug 2021 13:59:39 -0400 (EDT) |
branch: externals/csharp-mode
commit 5bfd3d21ad87b17829bf51397019d74d4098ee83
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>
Fix fontification of namespaces in using-statements.
Namespaces can add with numbers (like SomeContract.v3).
Update tests.
---
csharp-mode-tests.el | 2 ++
csharp-mode.el | 2 +-
test-files/namespace-fontification.cs | 8 ++++++++
test-files/using-fontification.cs | 1 +
4 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/csharp-mode-tests.el b/csharp-mode-tests.el
index 38d485e..d166a3f 100644
--- a/csharp-mode-tests.el
+++ b/csharp-mode-tests.el
@@ -121,6 +121,7 @@
"Reference" 'font-lock-constant-face
"Under_scored" 'font-lock-constant-face
"WithNumbers09.Ok" 'font-lock-constant-face
+ "WithNumbers09.OkV2" 'font-lock-constant-face
))
(ert-deftest fontification-of-namespace-statements ()
@@ -129,6 +130,7 @@
"Reference" 'font-lock-constant-face
"Under_scored" 'font-lock-constant-face
"WithNumbers09.Ok" 'font-lock-constant-face
+ "WithNumbers09.OkV2" 'font-lock-constant-face
))
(defun list-repeat-once (mylist)
diff --git a/csharp-mode.el b/csharp-mode.el
index 389de5a..e07199a 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -773,7 +773,7 @@ to work properly with code that includes attributes."
"[ \t\n\f\v\r]*="
"[ \t\n\f\v\r]*"
"\\)?"
- "\\(\\(?:[A-Za-z0-9_]+\\.\\)*[A-Za-z_]+\\)"
+ "\\(\\(?:[A-Za-z0-9_]+\\.\\)*[A-Za-z0-9_]+\\)"
"[ \t\n\f\v\r]*;")
(2 font-lock-constant-face t t)
(3 font-lock-constant-face))
diff --git a/test-files/namespace-fontification.cs
b/test-files/namespace-fontification.cs
index 9c7e8dd..e835160 100644
--- a/test-files/namespace-fontification.cs
+++ b/test-files/namespace-fontification.cs
@@ -5,3 +5,11 @@ namespace Reference {
namespace Under_Scored {
}
+
+namespace WithNumbers09.Ok {
+
+}
+
+namespace WithNumbers09.OkV2 {
+
+}
diff --git a/test-files/using-fontification.cs
b/test-files/using-fontification.cs
index 0f1f61b..dbb42f2 100644
--- a/test-files/using-fontification.cs
+++ b/test-files/using-fontification.cs
@@ -1,3 +1,4 @@
using Reference;
using Under_scored;
using WithNumbers09.Ok;
+using WithNumbers09.OkV2;
- [elpa] externals/csharp-mode bbd2888 232/459: Merge branch 'mattiasb-fix-warnings', (continued)
- [elpa] externals/csharp-mode bbd2888 232/459: Merge branch 'mattiasb-fix-warnings', ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode bc6a419 237/459: Update changelog., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 8ab3cc8 239/459: Dirty hack to force type-initializer indentation., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode d39d9ac 241/459: Revert "Make csharp-mode-map inherit from prog-mode-map", ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 0027f9c 246/459: Issue #112: Allow whitespace after the `#` in a directive., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode bd54e4d 250/459: Add csharp group definition, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 331b45d 251/459: Try fix/update CI-settings, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 85ae15d 252/459: Hacky formatting trick to make codedoc work with Omnisharp defaults, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 461cd87 254/459: Fix compilation error on Emacs 26., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode ba7a81a 253/459: Advise c-inside-bracelist-p (#122), ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 5bfd3d2 257/459: Fix fontification of namespaces in using-statements.,
ELPA Syncer <=
- [elpa] externals/csharp-mode 561c359 258/459: Fix fontification in Emacs27., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode c66916e 259/459: Update version/meta-data., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 239527c 263/459: Protect dmode from ccmode monkeypatch (#134), ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f3aff25 261/459: Try to properly silence warnings., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 643c63e 268/459: Highlight "value" as a constant., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode fcd092d 266/459: Add Emacs 26 to CI., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 2381280 269/459: Remove excess (incorrect) comment., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 30ae136 277/459: Merge pull request #150 from josteink/josteink-CI-fix, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 57bd21b 279/459: Merge pull request #152 from DamienCassou/typos, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 31124db 281/459: Merge pull request #156 from krzsztf/fix-lambda-indentation, ELPA Syncer, 2021/08/22