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

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

[elpa] externals/phps-mode d754163 221/405: More work on multi-line toke


From: Stefan Monnier
Subject: [elpa] externals/phps-mode d754163 221/405: More work on multi-line token-less lines
Date: Sat, 13 Jul 2019 10:00:17 -0400 (EDT)

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

    More work on multi-line token-less lines
---
 phps-mode-test-functions.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/phps-mode-test-functions.el b/phps-mode-test-functions.el
index c59ffcb..59a92f8 100644
--- a/phps-mode-test-functions.el
+++ b/phps-mode-test-functions.el
@@ -274,9 +274,9 @@
 
   (phps-mode-test-with-buffer
    "<html><head><title><?php if ($myCondition) {\n    if ($mySeconCondition) 
{\n        echo $title2;\n\n    } ?></title><body>Bla bla</body></html>"
-   "Mixed HTML/PHP with if expression"
+   "Mixed HTML/PHP with if expression and token-less lines"
    ;; (message "Tokens: %s" phps-mode-lexer-tokens)
-   (should (equal '((1 (0 0)) (2 (1 0)) (3 (2 0)) (5 (1 0))) 
(phps-mode-test-functions--hash-to-list 
(phps-mode-functions-get-lines-indent)))))
+   (should (equal '((1 (0 0)) (2 (1 0)) (3 (2 0))  (4 (2 0)) (5 (1 0))) 
(phps-mode-test-functions--hash-to-list 
(phps-mode-functions-get-lines-indent)))))
 
   (phps-mode-test-with-buffer
    "<html><head><title><?php\nif ($myCondition) {\n    if ($mySecondCondition) 
{\n        echo $title;\n    } else if ($mySecondCondition) {\n        echo 
$title4;\n    } else {\n        echo $title2;\n        echo $title3;\n    }\n} 
?></title><body>Bla bla</body></html>"



reply via email to

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