branch: elpa/julia-mode
commit 505d71b0fd311ef2ad86a708af33dae3ed7c20e9
Author: Adam Beckmeyer <[email protected]>
Commit: Adam Beckmeyer <[email protected]>
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")