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

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

[elpa] externals/csharp-mode 1de5644 227/459: using: Don't mess up alnum


From: ELPA Syncer
Subject: [elpa] externals/csharp-mode 1de5644 227/459: using: Don't mess up alnums in indentifier-fontification.
Date: Sun, 22 Aug 2021 13:59:32 -0400 (EDT)

branch: externals/csharp-mode
commit 1de5644cab7eef292784b87c1e12ec5e9982d398
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>

    using: Don't mess up alnums in indentifier-fontification.
---
 csharp-mode-tests.el              | 3 +++
 csharp-mode.el                    | 4 ++--
 test-files/using-fontification.cs | 1 +
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/csharp-mode-tests.el b/csharp-mode-tests.el
index da6a0e4..1e5a954 100644
--- a/csharp-mode-tests.el
+++ b/csharp-mode-tests.el
@@ -120,6 +120,9 @@
                         "using" 'font-lock-keyword-face
                         "Reference" 'font-lock-constant-face
                         "Under_scored" 'font-lock-constant-face
+                        "WithNumbers09.Ok" 'font-lock-constant-face
+                        ))
+
                         ))
 
 (defun list-repeat-once (mylist)
diff --git a/csharp-mode.el b/csharp-mode.el
index 8c5d0ab..a7dd0b4 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -762,11 +762,11 @@ to work properly with code that includes attributes.
            ,`(,(concat
                 "\\<\\(using\\)[ \t\n\f\v\r]+"
                 "\\(?:"
-                "\\([A-Za-z_]+\\)"
+                "\\([A-Za-z0-9_]+\\)"
                 "[ \t\n\f\v\r]*="
                 "[ \t\n\f\v\r]*"
                 "\\)?"
-                "\\(\\(?:[A-Za-z_]+\\.\\)*[A-Za-z_]+\\)"
+                "\\(\\(?:[A-Za-z0-9_]+\\.\\)*[A-Za-z_]+\\)"
                 "[ \t\n\f\v\r]*;")
               (2 font-lock-constant-face t t)
               (3 font-lock-constant-face))
diff --git a/test-files/using-fontification.cs 
b/test-files/using-fontification.cs
index 3c3b121..0f1f61b 100644
--- a/test-files/using-fontification.cs
+++ b/test-files/using-fontification.cs
@@ -1,2 +1,3 @@
 using Reference;
 using Under_scored;
+using WithNumbers09.Ok;



reply via email to

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