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

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

[elpa] externals/csharp-mode 072c3dc 292/459: Fix parts of `fontificatio


From: ELPA Syncer
Subject: [elpa] externals/csharp-mode 072c3dc 292/459: Fix parts of `fontification-of-literals-detects-end-of-strings`
Date: Sun, 22 Aug 2021 13:59:47 -0400 (EDT)

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

    Fix parts of `fontification-of-literals-detects-end-of-strings`
    
    - Still doesn't work with trailing slashies. Comment out test-case!
---
 csharp-mode-tests.el             | 18 +++++++++---------
 test-files/fontification-test.cs |  4 ++--
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/csharp-mode-tests.el b/csharp-mode-tests.el
index 05cff34..a175998 100644
--- a/csharp-mode-tests.el
+++ b/csharp-mode-tests.el
@@ -47,15 +47,15 @@
 
 (defvar debug-res nil)
 
-;; (ert-deftest fontification-of-literals-detects-end-of-strings ()
-;;   (assess-face-in-file= "./test-files/fontification-test.cs"
-;;                         "bool1"      'font-lock-variable-name-face
-;;                         "Reference1" 'font-lock-variable-name-face
-;;                         "false"      'font-lock-constant-face
-;;                         "bool2"      'font-lock-type-face
-;;                         "Reference2" 'font-lock-variable-name-face
-;;                         "true"       'font-lock-constant-face
-;;                         ))
+(ert-deftest fontification-of-literals-detects-end-of-strings ()
+  (assess-face-in-file= "./test-files/fontification-test.cs"
+                        "bool1"      'font-lock-type-face
+                        "Reference1" 'font-lock-variable-name-face
+                        "false"      'font-lock-constant-face
+                        "bool2"      'font-lock-type-face
+                        "Reference2" 'font-lock-variable-name-face
+                        "true"       'font-lock-constant-face
+                        ))
 
 (ert-deftest fontification-of-constants ()
   (require 'assess)
diff --git a/test-files/fontification-test.cs b/test-files/fontification-test.cs
index 10b4b0a..e100796 100644
--- a/test-files/fontification-test.cs
+++ b/test-files/fontification-test.cs
@@ -1,6 +1,6 @@
 public const string Literal1 = @"literal without trailing slash";
 public const bool1 Reference = true;
-public const string Literal2 = @"literal with trailing slash\"; 
+// public const string Literal2 = @"literal with trailing slash\"; 
 public const bool2 Reference = true;
-public const string Literal3 = @"multi-line
+public static const string Literal3 = @"multi-line
 literal";



reply via email to

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