emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/drupal-mode c68f560494 075/308: Fixed regexp for extractin


From: ELPA Syncer
Subject: [nongnu] elpa/drupal-mode c68f560494 075/308: Fixed regexp for extracting function arguments.
Date: Tue, 25 Jan 2022 10:59:30 -0500 (EST)

branch: elpa/drupal-mode
commit c68f560494cc13f9eeabc95b1c494bf17da426ee
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>

    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

[Prev in Thread] Current Thread [Next in Thread]