[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/phps-mode 2dc9280bcd 185/212: More work
From: |
Christian Johansson |
Subject: |
[elpa] externals/phps-mode 2dc9280bcd 185/212: More work |
Date: |
Wed, 26 Jan 2022 01:51:25 -0500 (EST) |
branch: externals/phps-mode
commit 2dc9280bcd681b324e87648f7f434c19886931a0
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
More work
---
phps-mode-indent.el | 3 ++-
phps-mode-macros.el | 2 +-
test/phps-mode-test-indent.el | 8 ++++++++
3 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/phps-mode-indent.el b/phps-mode-indent.el
index abedda6a8f..8164ae8a01 100644
--- a/phps-mode-indent.el
+++ b/phps-mode-indent.el
@@ -1041,12 +1041,13 @@
(setq
match-type
'line-after-line-that-ends-with-semicolon)
+ (end-of-line)
(when-let
((reference-line
(phps-mode-indent--get-previous-reference-command-line)))
- ;; (message "reference-line: %S" reference-line)
+ (message "reference-line: %S" reference-line)
(let ((reference-indentation
(phps-mode-indent--string-indentation
reference-line)))
diff --git a/phps-mode-macros.el b/phps-mode-macros.el
index c3cffb5e82..7d4e2550d7 100644
--- a/phps-mode-macros.el
+++ b/phps-mode-macros.el
@@ -9,7 +9,7 @@
(defconst
phps-mode-macrotime-debug
- nil
+ t
"Debug messages during macro expansion time, default nil.")
(defmacro phps-mode-debug-message (&rest message)
diff --git a/test/phps-mode-test-indent.el b/test/phps-mode-test-indent.el
index 72203dd2ac..e7bf7c013a 100644
--- a/test/phps-mode-test-indent.el
+++ b/test/phps-mode-test-indent.el
@@ -116,6 +116,14 @@
(phps-mode-indent--get-previous-reference-command-line)
"$var = 'command'")))
+ (with-temp-buffer
+ (insert "<?php\nif(true):\n echo 'here';\nelse:\n echo 'Something
else';\n echo 'Something else again';")
+ (goto-char (point-max))
+ (should
+ (string=
+ (phps-mode-indent--get-previous-reference-command-line)
+ " echo 'Something else';")))
+
(with-temp-buffer
(insert "<?php\nif (true) {\n array(\n 8,\n );")
(goto-char (point-max))
- [elpa] externals/phps-mode c2a7af2a98 142/212: Updated copyright years, (continued)
- [elpa] externals/phps-mode c2a7af2a98 142/212: Updated copyright years, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 91fb5402cd 158/212: Added another failing indentation and made it pass, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 66d4352052 169/212: Added more failing indent tests, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 0ca0e447b8 167/212: Improved indentation on lines starting with a closing bracket, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 18221a85f0 177/212: Added failing parse test for multiple swith case conditions, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode a2c61b9e7c 174/212: Started refactoring of indentation functions, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode e15d602e46 179/212: More TODO items, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 22c4f31716 178/212: Added TODO items, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode c05d97fc31 182/212: Disabled debug-mode in this branch, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode d095e757e6 186/212: Added failing imenu test, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 2dc9280bcd 185/212: More work,
Christian Johansson <=
- [elpa] externals/phps-mode 87974abfcc 190/212: Improved indentation after lines containing => symbol, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode e049853a6f 193/212: Remove use of lex-analyzer from semantic and instead use custom, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 0e3889a122 202/212: Added indentation support for HTML/XML, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode d85974c2aa 196/212: Improved indentation inside multi-dimensional arrays, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 057aadd2f6 197/212: Improved indentation around multi-line logical expressions, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 5273bdf42f 206/212: Started on cache feature, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode d19bd439cf 198/212: Updated TODO items, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 502a42b5c0 205/212: Improved indentation around doc-comments, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 198cfbd360 199/212: Added failing indentation tests, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode af263a5462 200/212: Improved indentation detection of start of alternative control structure, Christian Johansson, 2022/01/26