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

    Fixed regexp for extracting function arguments.
---
 drupal/gtags.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drupal/gtags.el b/drupal/gtags.el
index ee14e9cc07..5c460f59cb 100644
--- a/drupal/gtags.el
+++ b/drupal/gtags.el
@@ -49,7 +49,7 @@
       (ignore-errors
         (call-process gtags-global-command nil t nil "-x" symbol)
         (goto-char (point-min))
-        (search-forward-regexp ".*(\\(.*\\)).*" nil t)
+        (search-forward-regexp "[^(]*(\\(.*\\))[^)]*" nil t)
         (match-string-no-properties 1)))))
 
 (add-hook 'drupal-mode-hook #'drupal/gtags-enable)

Reply via email to