[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")
- [elpa] externals/phps-mode 0071b40aae 007/212: Syntax coloring is now in separate file, (continued)
- [elpa] externals/phps-mode 0071b40aae 007/212: Syntax coloring is now in separate file, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 1cc4aed616 016/212: Passing first bookkeeping test via generation via parser SDT, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode b3b27951bd 015/212: More work on bookkeeping, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 395a4ed045 036/212: Started on bookkeeping via parser SDT for properties, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 69341c9709 039/212: More working on bookkeeping of class properties via parser SDT, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode cefab36fa8 054/212: More work on bookkeeping arrow function variables, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode d9cbe630b3 068/212: Passing bookkeeping of variables inside echo statements, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 0919855a31 073/212: Added SDT for concat operation, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 5df554fc47 070/212: Bookkeeping via AST properly handles $this reference in only non-static methods, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 2432928a86 096/212: Indentation passing more tests for alternative control structures, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode cef879268b 103/212: Added two new tests for failing indentation for multi-line concatenated strings,
Christian Johansson <=
- [elpa] externals/phps-mode 40ce934c11 116/212: Indent support for string-doc in assignment, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode fbe600500f 135/212: More work on array and argument element indentation, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 6cb18913e4 152/212: Improved indentation for lines ending with closing bracket and comma, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 26d7b64086 144/212: Added TODO item for indentation, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 0e7eb04800 149/212: Passing indentation test for multiple function arguments with default values, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 2e16122284 153/212: Improved indentation on line after closing bracket and comma, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 1825ee499b 151/212: More wrestling with indentation, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 29fee20e43 141/212: Passed all tests for indentation, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 6a49784b8b 161/212: When indentation search previous code lines it skips commented out lines, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 5432a61340 162/212: Improved indentation around closing of multi-dimensional brackets, Christian Johansson, 2022/01/26