[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
- [elpa] externals/csharp-mode 098aba3 334/459: Fix improper handling of "new" in buffers., (continued)
- [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
- [elpa] externals/csharp-mode a6caa85 369/459: xUnit failures: Handle actual/expected output before stack-trace., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 134eeb6 289/459: Complete rework, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode bd881cd 303/459: Add a little better heuristics to vsemi-p, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 37f2441 313/459: Add 'nameof' and 'is' to 'other kwds', ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode fbcb363 315/459: Make sure attributes are not arrays and new has whitespace, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode c7bdaeb 320/459: Fix string fontification on emacs 27.1, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 3846c49 333/459: Move regexes and add eval-and-compile,
ELPA Syncer <=
- [elpa] externals/csharp-mode 9fa77ac 336/459: Use 'c-default-style' instead of 'c-set-style', ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 352d90e 337/459: Set c-default-style globally, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 71b833d 342/459: Add fontification for nameof and catch with only type, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 53e9e05 343/459: Merge pull request #188 from josteink/new-fontification, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 1d02407 344/459: Fix annoyance: Rename csharp-menu to csharp-mode-menu., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode aa57925 347/459: Add badges to README, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7741196 349/459: Merge pull request #195 from jcs-PR/badge, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7f39946 351/459: Create build.yml, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 51361ab 355/459: Update build.yml, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 256a638 357/459: Update build.yml, ELPA Syncer, 2021/08/22