emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/phps-mode 990d3dd 054/405: Added test for indentation o


From: Stefan Monnier
Subject: [elpa] externals/phps-mode 990d3dd 054/405: Added test for indentation of multiple-line doc comment
Date: Sat, 13 Jul 2019 09:59:42 -0400 (EDT)

branch: externals/phps-mode
commit 990d3dd5516fbd2319a1b7266a97548afe355042
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]