branch: externals/phps-mode
commit 804a0dbdb99ee1c98601af6e5d17c7276b3a8213
Author: Christian Johansson <christ...@cvj.se>
Commit: Christian Johansson <christ...@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