Skip to content

Commit 69ab01b

Browse files
committed
Add php-mode-test--parse-list-file
This file is copied by mode-test.el https://github.com/emacs-php/mode-test/blob/master/mode-test.el
1 parent 3849c0b commit 69ab01b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

php-mode-test.el

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@ be processed."
9999
(setq str (buffer-substring-no-properties begin-pos (point)))
100100
(nconc retval (list (cons str last-face)))))))
101101

102+
(defun php-mode-test--parse-list-file (file-path)
103+
"Return list from `FILE-PATH'."
104+
(with-temp-buffer
105+
(insert-file-contents file-path)
106+
(let ((read-circle t))
107+
(read (current-buffer)))))
108+
102109
(cl-defmacro with-php-mode-test ((file &key style indent magic custom) &rest body)
103110
"Set up environment for testing `php-mode'.
104111
Execute BODY in a temporary buffer containing the contents of

0 commit comments

Comments
 (0)