We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e46c80f commit 364b0adCopy full SHA for 364b0ad
php-mode-test.el
@@ -551,4 +551,9 @@ style from Drupal."
551
(search-forward "return")
552
(should (eq (current-indentation) (* 2 c-basic-offset)))))
553
554
+(ert-deftest php-mode-test-issue-227 ()
555
+ "multi-line strings indents "
556
+ (custom-set-variables '(php-lineup-cascaded-calls t))
557
+ (with-php-mode-test ("issue-227.php" :indent t :style pear)))
558
+
559
;;; php-mode-test.el ends here
tests/issue-227.php
@@ -0,0 +1,12 @@
1
+<?php
2
3
+/**
4
+ * GitHub Issue: https://github.com/ejmr/php-mode/issues/227
5
+ *
6
+ * Indentation of multi-line strings
7
+ */
8
9
+function my_func() {
10
+ return "a really long string with = inside " .
11
+"some more text"; // ###php-mode-test### ((indent 49))
12
+}
0 commit comments