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

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

bug#22241: 25.0.50; etags Ruby parser problems


From: Dmitry Gutov
Subject: bug#22241: 25.0.50; etags Ruby parser problems
Date: Sat, 30 Jan 2016 19:43:47 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Thunderbird/44.0

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.





reply via email to

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