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

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

[elpa] externals/csharp-mode 257602e 121/459: Test-file for https://gith


From: ELPA Syncer
Subject: [elpa] externals/csharp-mode 257602e 121/459: Test-file for https://github.com/josteink/csharp-mode/issues/46
Date: Sun, 22 Aug 2021 13:59:09 -0400 (EDT)

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

    Test-file for https://github.com/josteink/csharp-mode/issues/46
---
 csharp-mode-tests.el             |  2 +-
 test-files/this-fontification.cs | 30 ++++++++++++++++++++++++++++++
 2 files changed, 31 insertions(+), 1 deletion(-)

diff --git a/csharp-mode-tests.el b/csharp-mode-tests.el
index 8602c0c..2393d40 100644
--- a/csharp-mode-tests.el
+++ b/csharp-mode-tests.el
@@ -191,4 +191,4 @@
 
     (should (equal orig-content indented-content))))
 
-;;(ert-run-tests-interactively t)q
+;;(ert-run-tests-interactively t)
diff --git a/test-files/this-fontification.cs b/test-files/this-fontification.cs
new file mode 100644
index 0000000..c649e96
--- /dev/null
+++ b/test-files/this-fontification.cs
@@ -0,0 +1,30 @@
+using System;
+
+namespace DemoSpace
+{
+    public class DemoClass
+    {
+        private InnerClass _innerClass;
+
+        public DemoClass()
+        {
+            // note usage of plain "this".
+            _innerClass = new InnerClass(this);
+        }
+    }
+
+    public static class DemoClassExtensions
+    {
+        public static bool ExampleWithMemberType(this DemoClass instance, 
string foo)
+        {
+            // fontifies parameters incorrectly
+            return false;
+        }
+
+        public static bool ExampleWithBulitInType(this string instance, int 
bar)
+        {
+            // fontifies parameters correctly
+            return true;
+        }
+    }
+}



reply via email to

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