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

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

[elpa] externals/csharp-mode 3846c49 333/459: Move regexes and add eval-


From: ELPA Syncer
Subject: [elpa] externals/csharp-mode 3846c49 333/459: Move regexes and add eval-and-compile
Date: Sun, 22 Aug 2021 13:59:55 -0400 (EDT)

branch: externals/csharp-mode
commit 3846c4992dae066a1f1cb4ed10655249a94a56fb
Author: Theodor Thornhill <theodor.thornhill@frende.no>
Commit: Theodor Thornhill <theodor.thornhill@frende.no>

    Move regexes and add eval-and-compile
---
 csharp-mode.el | 23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

diff --git a/csharp-mode.el b/csharp-mode.el
index fae784a..8cf3847 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -36,13 +36,22 @@
 
 (require 'compile)
 
-(eval-and-compile
-  (c-add-language 'csharp-mode 'java-mode))
-
 (defgroup csharp nil
   "Major mode for editing C# code."
   :group 'prog-mode)
 
+(eval-and-compile
+  (defconst csharp--regex-type-name
+    "[A-Z][A-Za-z0-9_]*"
+    "Regex describing a type identifier in C#.")
+
+  (defconst csharp--regex-type-name-matcher
+    (concat "\\(" csharp--regex-type-name "\\)")
+    "Regex matching a type identifier in C#."))
+
+(eval-and-compile
+  (c-add-language 'csharp-mode 'java-mode))
+
 (c-lang-defconst c-make-mode-syntax-table
   csharp `(lambda ()
             (let ((table (make-syntax-table)))
@@ -280,14 +289,6 @@
            (eval . (list "\\(!\\)[^=]" 1 c-negation-char-face-name))
            ))
 
-(defconst csharp--regex-type-name
-  "[A-Z][A-Za-z0-9_]*"
-  "Regex describing a type identifier in C#.")
-
-(defconst csharp--regex-type-name-matcher
-  (concat "\\(" csharp--regex-type-name "\\)")
-  "Regex matching a type identifier in C#.")
-
 (c-lang-defconst c-basic-matchers-after
   csharp (append
           ;; merge with cc-mode defaults



reply via email to

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