[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode f640019 285/459: Fix display of ‘package’
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode f640019 285/459: Fix display of ‘package’ as any sort of name |
Date: |
Sun, 22 Aug 2021 13:59:45 -0400 (EDT) |
branch: externals/csharp-mode
commit f6400193607789ab129d7959522015a619339e53
Author: Tom Willemse <tom@ryuslash.org>
Commit: Tom Willemse <tom@ryuslash.org>
Fix display of ‘package’ as any sort of name
‘java-mode’ sets up "package" to be displayed as a keyword using both the
‘c-ref-list-kwds’ and ‘c-other-decl-kwds’. Override these constants for
‘csharp-mode’ so that a variable named ‘package’ doesn’t show up as a
keyword.
Because both constants are set to nil this also removes "import" from the
list
of keywords.
---
csharp-mode-tests.el | 12 ++++++++++++
csharp-mode.el | 6 ++++++
2 files changed, 18 insertions(+)
diff --git a/csharp-mode-tests.el b/csharp-mode-tests.el
index 85b2618..6e5ac24 100644
--- a/csharp-mode-tests.el
+++ b/csharp-mode-tests.el
@@ -67,6 +67,18 @@
"value" 'font-lock-constant-face
))
+(ert-deftest fontification-of-package ()
+ (require 'assess)
+ (assess-face-in-text=
+ "var package = true;"
+ "package" 'font-lock-variable-name-face))
+
+(ert-deftest fontification-of-import ()
+ (require 'assess)
+ (assess-face-in-text=
+ "var import = true;"
+ "import" 'font-lock-variable-name-face))
+
(ert-deftest fontification-of-literals-allows-multi-line-strings ()
(require 'assess)
(should (assess-face-at=
diff --git a/csharp-mode.el b/csharp-mode.el
index 0fea1d1..7793072 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -1399,6 +1399,12 @@ This regexp is assumed to not match any non-operator
identifier."
(c-lang-defconst c-other-block-decl-kwds
csharp '("namespace"))
+(c-lang-defconst c-ref-list-kwds
+ csharp nil)
+
+(c-lang-defconst c-other-decl-kwds
+ csharp nil)
+
(c-lang-defconst c-other-kwds
csharp '("sizeof" "typeof" "is" "as" "yield"
"where" "select" "in" "from" "let" "orderby" "ascending"
"descending"
- [elpa] externals/csharp-mode 8100976 267/459: Fix fontification of unsafe methods., (continued)
- [elpa] externals/csharp-mode 8100976 267/459: Fix fontification of unsafe methods., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 68a8a69 270/459: Fixed enum indentation level., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 0825112 276/459: Fix CI-error on Emacs 25.x, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode d537cfa 271/459: Add test-case for Enum-indentation., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 981ff38 275/459: Make it easier to reproduce CI errors locally., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 274dd88 273/459: Update CI-settings, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode e7e96e3 272/459: Fixed callback indentation level. (#145), ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 85d36e1 280/459: Fix lambda indentation #105, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 4885177 286/459: Merge pull request #161 from ryuslash/fix-package-fontification, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 5a9c8eb 287/459: Merge pull request #159 from ronnieholm/master, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f640019 285/459: Fix display of ‘package’ as any sort of name,
ELPA Syncer <=
- [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, 2021/08/22