We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d45583 commit 8d2c52cCopy full SHA for 8d2c52c
drupal/flymake-phpcs.el
@@ -151,8 +151,8 @@ copy."
151
(error "Invalid file-name"))
152
(or prefix
153
(setq prefix "flymake"))
154
- (let* ((extension (if (string-match "\\.tpl\\.php\\'" (or buffer-file-name (buffer-name)))
155
- ".tpl.php"
+ (let* ((extension (if (string-match "\\.\\(api\\|tpl\\)\\.php\\'" (or buffer-file-name (buffer-name)))
+ (match-string-no-properties 0)
156
(file-name-extension file-name t)))
157
(base-name (file-name-nondirectory (replace-regexp-in-string (concat (regexp-quote extension) "\\'") "" file-name)))
158
(temp-name (file-truename (make-temp-file (concat base-name "." prefix) nil extension))))
0 commit comments