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

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

[elpa] externals/phps-mode 804a0dbdb9 074/135: Added static uri for symb


From: Christian Johansson
Subject: [elpa] externals/phps-mode 804a0dbdb9 074/135: Added static uri for symbol names
Date: Sun, 29 Jan 2023 03:11:05 -0500 (EST)

branch: externals/phps-mode
commit 804a0dbdb99ee1c98601af6e5d17c7276b3a8213
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>

    Added static uri for symbol names
---
 phps-mode-parser-sdt.el | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/phps-mode-parser-sdt.el b/phps-mode-parser-sdt.el
index 9d4ae7fced..2f93d6bfd8 100644
--- a/phps-mode-parser-sdt.el
+++ b/phps-mode-parser-sdt.el
@@ -693,6 +693,15 @@
                    (format " anonymous %s%s" space-name (nth 
potential-uri-index potential-uris)))
                   (setq potential-uri-index (1+ potential-uri-index)))))
 
+             ((equal space-type 'static)
+              (let ((potential-uri-count (length potential-uris))
+                    (potential-uri-index 0))
+                (while (< potential-uri-index potential-uri-count)
+                  (setf
+                   (nth potential-uri-index potential-uris)
+                   (format " static%s" (nth potential-uri-index 
potential-uris)))
+                  (setq potential-uri-index (1+ potential-uri-index)))))
+
              ((equal space-type 'arrow-function)
               ;; TODO Should branch of two here one with and one without the 
arrow function scope
               (let ((potential-uri-count (length potential-uris))
@@ -734,9 +743,6 @@
                   ;; TODO Do something here
                   ))))
 
-             ((equal space-type 'static)
-              (setq is-static-p t))
-
              ))))
 
       (let ((potential-uri-count (length potential-uris))



reply via email to

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