[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/phps-mode 18221a85f0 177/212: Added failing parse test
From: |
Christian Johansson |
Subject: |
[elpa] externals/phps-mode 18221a85f0 177/212: Added failing parse test for multiple swith case conditions |
Date: |
Wed, 26 Jan 2022 01:51:23 -0500 (EST) |
branch: externals/phps-mode
commit 18221a85f0350bbb6c9a591312e7d9202757357c
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
Added failing parse test for multiple swith case conditions
---
TODO.md | 6 ++++++
phps-mode-macros.el | 2 +-
test/phps-mode-test-parser.el | 6 ++++++
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/TODO.md b/TODO.md
index 75d9351cdb..052f687244 100644
--- a/TODO.md
+++ b/TODO.md
@@ -3,3 +3,9 @@
* Catch signaling from AST-generation, bookkeeping and imenu generation
* Fix HTML/XML indentation support
* Optimize lexer by having predefined lists of lambdas inside a hash-map that
indexes per state of lexer
+* Lexer/parser fix for multiple cases like
+
+ case Type::T_MIXIN:
+ case Type::T_FUNCTION:
+ list(, $block) = $child;
+ // the block need to be able to go up to it's parent env to
resolve var
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-parser.el b/test/phps-mode-test-parser.el
index d4bcb74a38..f74d2e1a09 100644
--- a/test/phps-mode-test-parser.el
+++ b/test/phps-mode-test-parser.el
@@ -287,6 +287,12 @@
(lambda()
(phps-mode-parser-parse)))
+ (phps-mode-test-parser--buffer-contents
+ "<?php\n$case = 'First';\nswitch ($case)\n{\n case 'First':\n case
'Second':\n echo 'was here';\n}"
+ "Switch case with multiple conditions for same case"
+ (lambda()
+ (phps-mode-parser-parse)))
+
(message "\n-- Ran tests for parser parse. --"))
(defun phps-mode-test-parser ()
- [elpa] externals/phps-mode ffda8f1b5c 128/212: Added TODO item, (continued)
- [elpa] externals/phps-mode ffda8f1b5c 128/212: Added TODO item, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 2ef1168cb1 155/212: Added new failing indentation tests, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 519888fe79 150/212: Added another failing indent test, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 7ec071188a 137/212: Added more indent unit tests for nested function calls, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 837412c0e5 140/212: Improved indentation on lines starting with a closing bracket, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode cdbcd5ebe6 154/212: Added a new failing indent test and made it pass, Christian Johansson, 2022/01/26
- [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 <=
- [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, 2022/01/26
- [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