branch: externals/phps-mode
commit f6e3ce4b8e09d7e199d79b82bd291681eb0ce36c
Author: Christian Johansson <[email protected]>
Commit: Christian Johansson <[email protected]>
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