branch: externals/phps-mode commit da1cfd5390b04472f4796ea7dbd920860c5cd20e Author: Christian Johansson <christ...@cvj.se> Commit: Christian Johansson <christ...@cvj.se>
Adding failing lexer test --- phps-mode-test-lexer.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/phps-mode-test-lexer.el b/phps-mode-test-lexer.el index 26e3d5c..f3e68e4 100644 --- a/phps-mode-test-lexer.el +++ b/phps-mode-test-lexer.el @@ -160,6 +160,12 @@ (should (equal phps-mode-lexer-tokens '((T_OPEN_TAG 1 . 7) (T_VARIABLE 7 . 11) (T_EXIT 12 . 16) (T_DIE 17 . 20) (T_FUNCTION 21 . 29) (T_RETURN 30 . 36) (T_YIELD_FROM 37 . 48) (T_YIELD 48 . 53) (T_TRY 54 . 57) (T_CATCH 58 . 63) (T_FINALLY 64 . 71) (T_THROW 72 . 77) (T_IF 78 . 80) (T_ELSEIF 81 . 87) (T_ENDIF 88 . 93) (T_ELSE 94 . 98) (T_WHILE 99 . 104) (T_ENDWHILE 105 . 113) (T_DO 114 . 116) (T_FOR 117 . 120) (T_ENDFOR 121 . 127) (T_FOREACH 128 . 135) (T_ENDFOREACH 136 . 146) (T_DECLARE 147 . 154) (T_ENDDECLA [...] + (phps-mode-test-with-buffer + "<?php forger_array($arg1, $arg2)" + nil + (should (equal phps-mode-lexer-tokens + '((T_OPEN_TAG 1 . 7) (T_STRING 7 . 19) ("(" 19 . 20) (T_VARIABLE 20 . 25) ("," 25 . 26) (T_VARIABLE 27 . 32) (")" 32 . 33))))) + ) (defun phps-mode-test-lexer-complex-tokens ()