[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/phps-mode cb4d95cd7a 204/212: Passed new indentation te
From: |
Christian Johansson |
Subject: |
[elpa] externals/phps-mode cb4d95cd7a 204/212: Passed new indentation tests |
Date: |
Wed, 26 Jan 2022 01:51:27 -0500 (EST) |
branch: externals/phps-mode
commit cb4d95cd7adb419761d9e12cf67c8d0616469a9d
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
Passed new indentation tests
---
phps-mode-indent.el | 34 +++++++++++++++++++++++++---------
1 file changed, 25 insertions(+), 9 deletions(-)
diff --git a/phps-mode-indent.el b/phps-mode-indent.el
index deb16ecd08..cf1387940f 100644
--- a/phps-mode-indent.el
+++ b/phps-mode-indent.el
@@ -1360,7 +1360,8 @@
(phps-mode-indent--get-previous-start-of-bracket-line
t)))
(if reference-line
(progn
- ;; (message "reference-line: %S" reference-line)
+ (phps-mode-debug-message
+ (message "reference-line: %S" reference-line))
(setq
new-indentation
(phps-mode-indent--string-indentation
@@ -1374,27 +1375,42 @@
;; 'pointers' => (!empty($data['point1'])
;; && $data['point2'] === 22)
;; || (!empty($data['point3'])
- (when (or
- (string-match-p
- "^[\t ]*$[a-zA-Z0-9_]+[\t ]*[^=!]*=\\($\\|[\t
]+.*[^,;]$\\)"
- reference-line)
- (string-match-p
- "=>[^,;]*$"
- reference-line))
+ ;; but ignore
+ ;; foreach ($array as $key => $value) {
+ ;; echo 'here';
+ ;; }
+ ;; echo 'there';
+ (when (and
+ (not
+ (string=
+ previous-line-ends-with-closing-bracket
+ "}"))
+ (or
+ (string-match-p
+ "^[\t ]*$[a-zA-Z0-9_]+[\t ]*[^=!]*=\\($\\|[\t
]+.*[^,;]$\\)"
+ reference-line)
+ (string-match-p
+ "=>[^,;]*$"
+ reference-line)))
(setq
new-indentation
(+
new-indentation
tab-width))))
- ;; (message "previous-line-string: %S"
previous-line-string)
+ (phps-mode-debug-message
+ (message "previous-line-string: %S" previous-line-string))
;;$copies = method_exists($object, 'get_copies')
;; ? $object->get_copies()
;; or
;; 'random' => callback($abc)
;; || true
+ ;; or
+ ;; (isset($something)
+ ;; || false)
(when (or
+ (>= previous-bracket-level tab-width)
(string-match-p
"^[\t ]*$[a-zA-Z0-9_]+[\t ]*[^=!]*=\\($\\|[\t
]+.*[^,;]$\\)"
previous-line-string)
- [elpa] externals/phps-mode d74686e07c 180/212: Started on optimizing lexer, (continued)
- [elpa] externals/phps-mode d74686e07c 180/212: Started on optimizing lexer, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 06b35e4bf1 183/212: Fixed TODO item in this branch, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 40ecf58372 189/212: Adjustments for indent helper function determining last index line, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode edba476df8 191/212: Byte compilation fixes for indentation, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 580298c395 201/212: Improved indentation of multi-line concatenated strings containing brackets, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 3e79319cf5 195/212: Added failing indent test, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 72c692b511 210/212: Re-scan buffer interactively now clears cache and kills running threads, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 55d59ee365 207/212: More work on cache support, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 733f36a123 203/212: Added more failing indentation tests, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode d4f0db2c0c 211/212: Added failing bookkeeping test, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode cb4d95cd7a 204/212: Passed new indentation tests,
Christian Johansson <=
- [elpa] externals/phps-mode a907f103f0 026/212: More work on AST for bookkeeping, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 95078e0db2 029/212: Added SDT for increment variable production, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode d90b470109 035/212: Fixed bookkeeping of class property, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode bcf0c68945 038/212: AST-imenu and AST-bookkeeping now in standalone files, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 4e021b8413 046/212: Bookkeeping via AST now passing method calls, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 712f5e9f2b 049/212: Removed invalid syntax code from old bookkeeping test, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 1dc3b453c9 043/212: Passed bookkeeping via AST for try catch blocks, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 882e6f75dc 062/212: Work on SDT for interface methods, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 30e9fa14ff 075/212: Added a failing bookkeeping test, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 16ce2acfb7 077/212: Removed debug output for bookkeeping, Christian Johansson, 2022/01/26