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

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

[elpa] externals/phps-mode f6e3ce4 027/405: Added another test for comme


From: Stefan Monnier
Subject: [elpa] externals/phps-mode f6e3ce4 027/405: Added another test for comments
Date: Sat, 13 Jul 2019 09:59:33 -0400 (EDT)

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

    Added another test for comments
---
 phps-test-lexer.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/phps-test-lexer.el b/phps-test-lexer.el
index 95d592c..d78df2b 100644
--- a/phps-test-lexer.el
+++ b/phps-test-lexer.el
@@ -138,6 +138,10 @@
    (should (equal phps-mode/lexer-tokens
                   '((T_OPEN_TAG 1 . 7) (T_COMMENT 7 . 24) (";" 24 . 26) 
(T_CLOSE_TAG 24 . 26)))))
 
+  (phps-mode/with-test-buffer
+   "<?php //echo $contact_position;?><!--</div>-->"
+   (should (equal phps-mode/lexer-tokens
+                  '((T_OPEN_TAG 1 . 7) (T_COMMENT 7 . 32) (";" 32 . 34) 
(T_CLOSE_TAG 32 . 34))
 
 
   (phps-mode/with-test-buffer



reply via email to

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