GNU bug report logs - #22241
25.0.50; etags Ruby parser problems

Previous Next

Package: emacs;

Reported by: Dmitry Gutov <dgutov <at> yandex.ru>

Date: Sat, 26 Dec 2015 04:00:02 UTC

Severity: normal

Found in version 25.0.50

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


Message #41 received at 22241 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 22241 <at> debbugs.gnu.org
Subject: Re: bug#22241: 25.0.50; etags Ruby parser problems
Date: Sat, 30 Jan 2016 19:43:47 +0300
On 01/30/2016 01:52 PM, Eli Zaretskii wrote:

> What about the following snippet: what tags, if any, should it produce
> for the 'class' line?
>
> class << a
>    def inspect
>      '"bar"'
>    end
> end

No tags on the class line. It's not a declaration either, it's another 
way to define a method named 'inspect' on the value of 'a'. 'a' must be 
a local variable.

> Also, in the above example, what should be the class-qualified name of
> 'inspect'?

Depends on the value of a. Which would be pretty hard for etags to 
track, hence my earlier suggestion to skip it:

    If it's followed by something other than "self"...
    maybe even skip the following scope altogether.




This bug report was last modified 9 years and 161 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.