branch: externals/phps-mode commit a9241a9b670d8e9efc38b024223cec711af2230d Author: Christian Johansson <christ...@cvj.se> Commit: Christian Johansson <christ...@cvj.se>
Added constants bookkeeping and imenu test again --- test/phps-mode-test-ast.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/phps-mode-test-ast.el b/test/phps-mode-test-ast.el index 5e96cf133b..505d7ef968 100644 --- a/test/phps-mode-test-ast.el +++ b/test/phps-mode-test-ast.el @@ -134,11 +134,11 @@ ;; TODO v2 Should properly bookkeep inside potentially endlessly nested anonymous functions / arrow functions / anonymous classes ;; TODO v2 bookkeep and include all kind of constants in imenu - ;; (phps-mode-test-ast--should-bookkeep - ;; "<?php\n\nnamespace mySpace\n{\n define('MY_CONSTANT', 'abc123');\n const MY_CONSTANT2 = 'def456';\n\n if (\\MY_CONSTANT) {\n echo 'hit';\n }\n if (MY_CONSTANT) {\n echo 'hit';\n }\n if (MY_CONSTANT2) {\n echo 'hit';\n }\n if (\\mySpace\\MY_CONSTANT2) {\n echo 'hit';\n }\n\n if (\\YOUR_CONSTANT) {\n echo 'miss';\n }\n if (YOUR_CONSTANT) {\n echo 'miss';\n }\n if (\\MY_CONSTANT2) {\n echo ' [...] - ;; "Constants in all possible scopes" - ;; '(((159 170) 1) ((208 220) 1) ((371 384) 0) ((848 862) 5) ((900 911) 1) ((1000 1011) 1)) - ;; '(("abc"))) + (phps-mode-test-ast--should-bookkeep + "<?php\n\nnamespace mySpace\n{\n define('MY_CONSTANT', 'abc123');\n const MY_CONSTANT2 = 'def456';\n\n if (\\MY_CONSTANT) {\n echo 'hit';\n }\n if (MY_CONSTANT) {\n echo 'hit';\n }\n if (MY_CONSTANT2) {\n echo 'hit';\n }\n if (\\mySpace\\MY_CONSTANT2) {\n echo 'hit';\n }\n\n if (\\YOUR_CONSTANT) {\n echo 'miss';\n }\n if (YOUR_CONSTANT) {\n echo 'miss';\n }\n if (\\MY_CONSTANT2) {\n echo 'mis [...] + "Constants in all possible scopes" + '(((159 170) 1) ((208 220) 1) ((371 384) 0) ((848 862) 5) ((900 911) 1) ((1000 1011) 1)) + '(("abc"))) (phps-mode-test-ast--should-bookkeep "<?php\n\n$var = 'abc';\n\nif ($var2) {\n echo 'This never happens';\n}\nif ($var) {\n echo 'This happens';\n}"