[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/drupal-mode 430b04536e 176/308: Added special case for .tp
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/drupal-mode 430b04536e 176/308: Added special case for .tpl.php extensions. |
Date: |
Tue, 25 Jan 2022 10:59:45 -0500 (EST) |
branch: elpa/drupal-mode
commit 430b04536e1980e9cbd7bbaac6ef45cf79526c06
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>
Added special case for .tpl.php extensions.
---
drupal/flymake-phpcs.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drupal/flymake-phpcs.el b/drupal/flymake-phpcs.el
index a75d76289a..d861bf3f22 100644
--- a/drupal/flymake-phpcs.el
+++ b/drupal/flymake-phpcs.el
@@ -49,8 +49,11 @@
;; version of `flymake-allowed-file-name-masks' and make
;; flymake-phpcs initialize.
(make-local-variable 'flymake-allowed-file-name-masks)
- (add-to-list 'flymake-allowed-file-name-masks
- `(,(concat "\\." (file-name-extension (or buffer-file-name
(buffer-name))) "\\'") flymake-phpcs-init))
+ (let ((extension (file-name-extension (or buffer-file-name
(buffer-name)))))
+ (when (string-match "\\.tpl\\.php\\'" (or buffer-file-name
(buffer-name)))
+ (setq extension "tpl\\.php"))
+ (add-to-list 'flymake-allowed-file-name-masks
+ `(,(concat "\\." extension "\\'") flymake-phpcs-init)))
(flymake-mode 1)))
(add-hook 'drupal-mode-hook #'drupal/flymake-phpcs-enable)
- [nongnu] elpa/drupal-mode d88b39e8f5 262/308: Fixed travis.yml, (continued)
- [nongnu] elpa/drupal-mode d88b39e8f5 262/308: Fixed travis.yml, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 3cae8bea76 267/308: Merge pull request #70 from arnested/api-skeleton, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 1545d07f0d 265/308: Use drupal/phpcs-standard in drupal-phpcs checker, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 690f2c5592 293/308: Cleanup URLs in documentation, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 81c63e7c5a 064/308: Removed accidental debug message., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 615de83357 077/308: Build tags-table when drupal-mode is entered., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 9ca9376c93 055/308: Addes wrapper function and added test cases to package., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 866c3f4f86 128/308: Carton renamed to Cask., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 080049a881 130/308: Reenable ignore-errors., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 0a9d8dfa49 164/308: Cleaned whitespace., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 430b04536e 176/308: Added special case for .tpl.php extensions.,
ELPA Syncer <=
- [nongnu] elpa/drupal-mode be281df109 175/308: Added info modes. Drupal Coder Sniffer understands info files as well., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 3937ec3f40 002/308: Initial version., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 6e1ef13c5e 001/308: Initial commit, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 7d2d703ab9 017/308: Merge branch 'feature/documentation' into develop, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 6fbdb4e9ad 020/308: Made customization of search URLs more intuitive., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 1e06f39e9f 025/308: Added `drupal-drush-cache-clear'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 85040ec2e5 062/308: Actually enable flymake-mode in Drupal buffers., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 9c5f0066d5 071/308: Added function arguments on `drupal-insert-hook'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 6b22e8c714 059/308: Added copyright and author comments., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode bb47e5d71b 086/308: Replaced nested `if's with `cond'., ELPA Syncer, 2022/01/25