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

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

[elpa] externals/phps-mode cef879268b 103/212: Added two new tests for f


From: Christian Johansson
Subject: [elpa] externals/phps-mode cef879268b 103/212: Added two new tests for failing indentation for multi-line concatenated strings
Date: Wed, 26 Jan 2022 01:51:04 -0500 (EST)

branch: externals/phps-mode
commit cef879268b423d39b0e1c29143cc4ba69d36ae80
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>

    Added two new tests for failing indentation for multi-line concatenated 
strings
---
 phps-mode-indent.el           | 8 ++++++++
 test/phps-mode-test-indent.el | 8 ++++++++
 2 files changed, 16 insertions(+)

diff --git a/phps-mode-indent.el b/phps-mode-indent.el
index bea280da8c..36a49a6604 100644
--- a/phps-mode-indent.el
+++ b/phps-mode-indent.el
@@ -433,8 +433,16 @@
               ;; echo 'Something'
               ;;     . 'more';
               ;; or
+              ;; echo
+              ;;     'Something'
+              ;;     . 'more';
+              ;; or
               ;; echo 'Something' .
               ;;     'more';
+              ;; or
+              ;; echo
+              ;;     'Something' .
+              ;;     'more';
               (when (or
                      (string-match-p
                       "^[\t ]*\\."
diff --git a/test/phps-mode-test-indent.el b/test/phps-mode-test-indent.el
index e26bd75f61..5a0e2d1dad 100644
--- a/test/phps-mode-test-indent.el
+++ b/test/phps-mode-test-indent.el
@@ -371,6 +371,14 @@
    "<?php\n$var = 'A line' .\n    'more text here' .\n    'even more text' .\n 
   'last line here';\necho 'was here';"
    "Concatenated single-quoted-string multiple-lines in assignment #6")
 
+  (phps-mode-test-indent--should-equal
+   "<?php\n$var =\n    'A line' \n    . 'more text here'\n    . 'last line 
here';\necho 'was here';"
+   "Concatenated single-quoted-string multiple-lines in assignment #7")
+
+  (phps-mode-test-indent--should-equal
+   "<?php\n$var =\n    'A line' .\n    'more text here' .\n    'even more 
text' .\n    'last line here';\necho 'was here';"
+   "Concatenated single-quoted-string multiple-lines in assignment #8")
+
   (phps-mode-test-indent--should-equal
    "<?php\n$var .=\n    'A line';\necho 'was here';"
    "Concatenated equal single-quoted-string on multiple-lines in assignment")



reply via email to

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