Ruby method on self is missing the trailing ? in the generated tag name
Brought to you by:
dhiebert
For Ruby class like
class C
def d?
end
def self.d?
end
def e!
end
def self.e!
end
end
I get this in TAGS after running ctags -e:
class CC13,44
def d?d?14,52
def self.d?d17,68
def e!e!20,89
def self.e!e23,105
Note the tag name for self.d?.
ctags --version
Exuberant Ctags 5.9~svn20110310, Copyright (C) 1996-2009 Darren Hiebert
Compiled: Sep 29 2014, 16:06:25
Addresses: dhiebert@users.sourceforge.net, http://ctags.sourceforge.net
Optional compiled features: +wildcards, +regex
Could you try https://github.com/fishman/ctags/pull/313?
(I don't know the syntax of ruby.)
That fixes it. Thanks!
Note that your example, at https://github.com/fishman/ctags/blob/c80cc38090b337a094200d24b0501925f001c1a9/Units/ruby-sf-bug-364.d/expected.tags, looks a bit odd because in Ruby method names are almost never capitalized (with a few exceptions; and those aren't methods defined on a class). Not a big deal, though.
Thank you for checking. I will update the test case as reflecting your comment.
Merged at github.