branch: externals/phps-mode
commit 1bc571353cd31c255408d5351dfc469f007b9a91
Author: Christian Johansson <[email protected]>
Commit: Christian Johansson <[email protected]>
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"))