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

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

[nongnu] elpa/julia-mode 505d71b 339/352: Add all problemmatic strings f


From: ELPA Syncer
Subject: [nongnu] elpa/julia-mode 505d71b 339/352: Add all problemmatic strings from issue #15 to tests
Date: Sun, 29 Aug 2021 11:23:14 -0400 (EDT)

branch: elpa/julia-mode
commit 505d71b0fd311ef2ad86a708af33dae3ed7c20e9
Author: Adam Beckmeyer <adam_gpg@thebeckmeyers.xyz>
Commit: Adam Beckmeyer <adam_gpg@thebeckmeyers.xyz>

    Add all problemmatic strings from issue #15 to tests
    
    Closes #15
---
 julia-mode-tests.el | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/julia-mode-tests.el b/julia-mode-tests.el
index 89d1b26..7ef8292 100644
--- a/julia-mode-tests.el
+++ b/julia-mode-tests.el
@@ -532,8 +532,17 @@ end")
     (julia--should-font-lock string 74 font-lock-type-face) ; B
     ))
 
+(ert-deftest julia--test-single-quote-string-font-lock ()
+  "Test that single quoted strings are font-locked correctly even with 
escapes."
+  ;; Issue #15
+  (let ((s1 "\"a\\\"b\"c"))
+    (julia--should-font-lock s1 2 font-lock-string-face)
+    (julia--should-font-lock s1 5 font-lock-string-face)
+    (julia--should-font-lock s1 7 nil)))
+
 (ert-deftest julia--test-triple-quote-string-font-lock ()
   "Test that triple quoted strings are font-locked correctly even with 
escapes."
+  ;; Issue #15
   (let ((s1 "\"\"\"a\\\"\\\"\"b\"\"\"d")
         (s2 "\"\"\"a\\\"\"\"b\"\"\"d")
         (s3 "\"\"\"a```b\"\"\"d")



reply via email to

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