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

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

[nongnu] elpa/d-mode 2f684db 037/346: Fix deadlock in imenu generator


From: ELPA Syncer
Subject: [nongnu] elpa/d-mode 2f684db 037/346: Fix deadlock in imenu generator
Date: Sun, 29 Aug 2021 11:00:00 -0400 (EDT)

branch: elpa/d-mode
commit 2f684db85618d111fdca7fd3d3f3e1547b07d11a
Author: finalpatch <fengli@gmail.com>
Commit: finalpatch <fengli@gmail.com>

    Fix deadlock in imenu generator
---
 d-mode.el | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/d-mode.el b/d-mode.el
index 0e167f8..bcd221b 100644
--- a/d-mode.el
+++ b/d-mode.el
@@ -394,10 +394,9 @@ operators."
      ;; "return foo(x);" or "static if(x) {"
      ;; so we exclude type name 'static' or 'return' here
      (while (let ((type (match-string 1)))
-              (and type
-                   (or (string= type "static")
-                       (string= type "return")
-                       (string= type "new"))))
+              (and pt type
+                   (save-match-data
+                     (string-match (c-lang-const c-regular-keywords-regexp) 
type))))
        (setq pt (re-search-backward d-imenu-method-name-pattern nil t)))
      pt)
    ;; Do not count invisible definitions.



reply via email to

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