branch: elpa/drupal-mode
commit c3f2427b4ac084d905682096bcf8e68273d8b5da
Author: Arne Jørgensen <[email protected]>
Commit: Arne Jørgensen <[email protected]>

    Fix phpcs output parsing
    
    Fixes #71.
---
 drupal/phpcs.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drupal/phpcs.el b/drupal/phpcs.el
index 723f9fa32f..4dd4cbbb90 100644
--- a/drupal/phpcs.el
+++ b/drupal/phpcs.el
@@ -1,6 +1,6 @@
 ;;; drupal/phpcs.el --- Drupal-mode common support for flymake-phpcs and 
flycheck
 
-;; Copyright (C) 2012, 2013 Arne Jørgensen
+;; Copyright (C) 2012, 2013, 2016 Arne Jørgensen
 
 ;; Author: Arne Jørgensen <[email protected]>
 
@@ -34,7 +34,7 @@
                          ;; command. Check for both.
                          (call-process (or (and (boundp 
'flymake-phpcs-command) (executable-find flymake-phpcs-command)) 
(executable-find "phpcs")) nil (list t nil) nil "-i")))))
       (when (string-match
-             "\\(Drupal[^,
+             "\\(Drupal[^ ,
 ]*\\)"
              standards)
         (match-string-no-properties 1 standards))))

Reply via email to