Skip to content

Commit

Permalink
fix #84
Browse files Browse the repository at this point in the history
  • Loading branch information
xcwen committed Jun 5, 2018
1 parent 18d1472 commit c815709
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ac-php-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -1817,9 +1817,14 @@ Non-nil SILENT will supress extra status info in the minibuffer."
(defun ac-php--goto-local-var-def ( local-var )
"goto local-var like vim - gd"
(let ( )
(ac-php--debug " local-var %s " local-var )
(ac-php-location-stack-push)
(beginning-of-defun)

(re-search-forward (concat "\\" local-var "\\b" ) ) ; => \\$var\\b
(while (not (ac-php-check-not-in-string-or-comment (point )) )
(re-search-forward (concat "\\" local-var "\\b" ) ) ; => \\$var\\b
)
;;(ac-php-location-stack-push)
))

Expand All @@ -1842,10 +1847,10 @@ Non-nil SILENT will supress extra status info in the minibuffer."
(unless symbol-ret
(setq symbol-ret (ac-php-find-symbol-at-point-pri tags-data nil t))
)
(ac-php--debug "33goto %s" symbol-ret )
(ac-php--debug "33goto %s %s" symbol-ret local-var-flag )


(when symbol-ret
(if symbol-ret
(progn
(ac-php--debug "goto %s" symbol-ret )
(setq type (car symbol-ret ))
Expand Down

0 comments on commit c815709

Please sign in to comment.