Skip to content

Commit 8d2c52c

Browse files
committed
Prepared for .api.php CoderSniffer sniffs.
1 parent 5d45583 commit 8d2c52c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drupal/flymake-phpcs.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ copy."
151151
(error "Invalid file-name"))
152152
(or prefix
153153
(setq prefix "flymake"))
154-
(let* ((extension (if (string-match "\\.tpl\\.php\\'" (or buffer-file-name (buffer-name)))
155-
".tpl.php"
154+
(let* ((extension (if (string-match "\\.\\(api\\|tpl\\)\\.php\\'" (or buffer-file-name (buffer-name)))
155+
(match-string-no-properties 0)
156156
(file-name-extension file-name t)))
157157
(base-name (file-name-nondirectory (replace-regexp-in-string (concat (regexp-quote extension) "\\'") "" file-name)))
158158
(temp-name (file-truename (make-temp-file (concat base-name "." prefix) nil extension))))

0 commit comments

Comments
 (0)