branch: externals/phps-mode
commit a62e6be40ea8201ac555ffd6a8858439c3212c62
Author: Christian Johansson <[email protected]>
Commit: Christian Johansson <[email protected]>
Fixed indentation on line after print_r
---
phps-mode-indent.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/phps-mode-indent.el b/phps-mode-indent.el
index 65b3ad8891..4dc2044eb4 100644
--- a/phps-mode-indent.el
+++ b/phps-mode-indent.el
@@ -365,9 +365,11 @@
;; echo 'Something' .
;; 'something';
+ ;; but ignore
+ ;; print_r($object)
((and
(string-match-p
- "^[\t ]*\\(echo\\|print\\|return\\|die\\)"
+ "^[\t ]*\\(echo\\|print$\\|print[\t ]+\\|return\\|die\\)"
previous-line-string)
(not
(string-match-p