[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/phps-mode e92bed3 54/62: Started debugging failing inde
From: |
Christian Johansson |
Subject: |
[elpa] externals/phps-mode e92bed3 54/62: Started debugging failing indentation in some weird cases |
Date: |
Tue, 20 Apr 2021 10:56:23 -0400 (EDT) |
branch: externals/phps-mode
commit e92bed37c5f655cc287a2442d0a7491cd6c69290
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
Started debugging failing indentation in some weird cases
---
test/phps-mode-test-lex-analyzer.el | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/test/phps-mode-test-lex-analyzer.el
b/test/phps-mode-test-lex-analyzer.el
index 75a2e2b..15ca578 100644
--- a/test/phps-mode-test-lex-analyzer.el
+++ b/test/phps-mode-test-lex-analyzer.el
@@ -269,6 +269,28 @@
"<?php\nif ($shippingMethod->id ===\n \\MyClass::METHOD_ID\n)
{\n "
))))
+ (setq phps-mode-idle-interval nil)
+ (phps-mode-test--with-buffer
+ ""
+ "Multi-line if block after opening parenthesis"
+ (execute-kbd-macro "<?php")
+ (execute-kbd-macro (kbd "<return>"))
+ (execute-kbd-macro "if (true) {")
+ (execute-kbd-macro (kbd "<return>"))
+ (execute-kbd-macro "if (")
+ (execute-kbd-macro (kbd "<return>"))
+ (message "minor-mode-alist: %S" minor-mode-alist)
+ (let ((buffer-contents
+ (buffer-substring-no-properties
+ (point-min)
+ (point-max))))
+ (message "buffer-contents: %S" buffer-contents)
+ (error "Here")
+ (should (equal
+ buffer-contents
+ "<?php\nif (true) {\n if (\n \n )\n}"
+ ))))
+
)
(defun phps-mode-test-lex-analyzer--move-lines-indent ()
- [elpa] externals/phps-mode 685375c 31/62: Passing all unit tests after updated lex-analyzer, (continued)
- [elpa] externals/phps-mode 685375c 31/62: Passing all unit tests after updated lex-analyzer, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 050fe6a 36/62: Updated version and modified date, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode ec19574 43/62: More implementation of grammar, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode a99284a 39/62: Added TODO item, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 209055b 62/62: Updated date and version, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 86de51b 51/62: Fixed bug with incremental nesting stack, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode a164e82 33/62: Updated README about PHP 8.0 lexer, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 5a3bee3 40/62: More work on implementing PHP 8.0 grammar, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode a4b641d 56/62: Improved Make-script for compile and clean, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode d56472c 50/62: Added precedence attributes to grammar, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode e92bed3 54/62: Started debugging failing indentation in some weird cases,
Christian Johansson <=
- [elpa] externals/phps-mode 3fb73ee 37/62: Added bookkeeping support of superglobals $argc, $argv and $http_response_header, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 2efba0b 38/62: Started on generated parser via emacs-parser-generator, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode fd971ee 48/62: Fixed missing lex-analyzer tokens, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 30e1317 59/62: Removed test-file from master branch, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode b04da34 60/62: Fixed tests, only clearing imenu when starting to process changes, if idle inteval is set to nil process changes directly, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 1991912 49/62: Fixed bug in grammar syntax, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode afaf192 53/62: Resolved conflict, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode daff735 58/62: Removed debug output, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode b115fdc 57/62: Added ELPA copyright to file missing it, Christian Johansson, 2021/04/20