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

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

[elpa] externals/phps-mode 1bc5713 227/405: New tests for concatenation


From: Stefan Monnier
Subject: [elpa] externals/phps-mode 1bc5713 227/405: New tests for concatenation passes
Date: Sat, 13 Jul 2019 10:00:18 -0400 (EDT)

branch: externals/phps-mode
commit 1bc571353cd31c255408d5351dfc469f007b9a91
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>

    New tests for concatenation passes
---
 phps-mode-functions.el | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/phps-mode-functions.el b/phps-mode-functions.el
index e46506c..b98aaa9 100644
--- a/phps-mode-functions.el
+++ b/phps-mode-functions.el
@@ -287,14 +287,9 @@
                   (setq after-extra-special-control-structure nil))
 
                 ;; Keep track of concatenations
-                (when (and first-token-on-line
-                           (string= token "."))
-                  (when phps-mode-functions-verbose
-                    (message "\nFound starting dot, indenting current line 
with one.\n"))
-                  (setq temp-pre-indent t)
-                  (setq temp-pre-indent (1+ column-level)))
                 (when (> next-token-start-line-number token-end-line-number)
-                  (if (string= token ".")
+                  (if (or (string= token ".")
+                          (string= next-token "."))
                       (progn
                         (when phps-mode-functions-verbose
                           (message "\nFound ending dot, indenting next line 
with one.\n"))



reply via email to

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