help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: etags and php classes


From: Chris Van Dusen
Subject: Re: etags and php classes
Date: Thu, 3 Apr 2014 04:47:02 -0500

On Apr 3, 2014, at 1:27 AM, Luca Ferrari <fluca1978@infinito.it> wrote:

> 
> Consider the following simple file (class):
> 
> <?php
> 
> class Foo{
>    public function doSomething(){
>        echo "Something";
>    }
> 
>    public function doSomethingElse(){
>        echo "Else";
>    }
> }
> 
> 
> ?>
> 
> then, if I rebuild the tags file with
> etags --members `find . -name '*.php'`
> 
> and then list the tags for Foo I got (M-x list-tags Foo.php):
> 
> Tags in file `/sviluppo/php/edilweb/edilweb/classes/Foo.php':
> 
> class Foo{
> 
> 
> If I search for one of the functions (M-.) I got:
> 
> No tags containing doSomethingElse
> 

Looking at the output of stags —help, I see that it lists support
for PHP only up to php4.

PHP4 doesn't support visibility operators (public, private, 
protected), so if you remove those, and rerun stags,
M-x list-tags will display the functions.

hth,
Chris.


reply via email to

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