branch: externals/phps-mode commit 990d3dd5516fbd2319a1b7266a97548afe355042 Author: Christian Johansson <christ...@cvj.se> Commit: Christian Johansson <christ...@cvj.se>
Added test for indentation of multiple-line doc comment --- phps-test-functions.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/phps-test-functions.el b/phps-test-functions.el index 9635bc0..c0cfd23 100644 --- a/phps-test-functions.el +++ b/phps-test-functions.el @@ -90,6 +90,14 @@ (should (equal buffer-contents "<?php\n$variable = array(\n 'random2'\n);\n$variable = true;\n")))) (phps-mode/with-test-buffer + "<?php\n/**\n* My first line\n* My second line\n**/\n" + (goto-char 20) + (phps-mode/indent-line) + (message "Tokens %s point %s" phps-mode/lexer-tokens (point)) + (let ((buffer-contents (buffer-substring-no-properties (point-min) (point-max)))) + (should (equal buffer-contents "<?php\n/**\n * My first line\n* My second line\n**/\n")))) + + (phps-mode/with-test-buffer "<?php\n$variable = array(\n'random4');\n$variable = true;\n" (goto-char 29) (phps-mode/indent-line)