Skip to content

Commit fd72772

Browse files
committed
Add test for multiline strings
1 parent af66ea7 commit fd72772

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/haskell-indentation-tests.el

+20
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,26 @@ fact n =
850850
(4 0 2 4 6)
851851
(5 0 2 4 6))
852852

853+
(hindent-test "47a multiline strings" "
854+
fact n = \"\\
855+
\\a\""
856+
(1 0)
857+
;; we want to offer both a continuation style and the
858+
;; align to left column style (like in lisp)
859+
(2 0 9)
860+
(3 0 2))
861+
862+
(hindent-test "47b multiline strings" "
863+
fact n = \"\\
864+
\\a\\
865+
\\x\""
866+
;; here we want to keep third line like the second one,
867+
;; although the second one wasn't best indented
868+
(1 0)
869+
(2 0 9)
870+
(3 6))
871+
872+
853873
(defmacro with-temp-switch-to-buffer (&rest body)
854874
"Create a temporary buffer, use `switch-to-buffer' and evaluate BODY there like `progn'.
855875

0 commit comments

Comments
 (0)