Skip to content

Commit

Permalink
Fix syntax testing method
Browse files Browse the repository at this point in the history
  • Loading branch information
zonuexe committed Aug 1, 2021
1 parent 03e9985 commit bd3bd23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/php-mode-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,12 @@ style from Drupal."
(with-php-mode-test ("issue-124.php" :indent t)
(search-forward "Start of heredoc")
;; The heredoc should be recognized as a string.
(dolist (syntax (c-guess-basic-syntax))
(should (eq (car syntax) 'string)))
(should (equal (mapcar #'car (c-guess-basic-syntax))
'(statement-cont)))
(search-forward "function bar")
;; After the heredoc should *not* be recognized as a string.
(dolist (syntax (c-guess-basic-syntax))
(should (not (eq (car syntax) 'string))))))
(should (equal (mapcar #'car (c-guess-basic-syntax))
'(topmost-intro-cont)))))

(ert-deftest php-mode-test-issue-136 ()
"Proper highlighting for variable interpolation."
Expand Down

0 comments on commit bd3bd23

Please sign in to comment.