if (cp > name + 1)
{
bp = skip_spaces (cp);
- if (*bp == '=' && c_isspace (bp[1]))
+ if (*bp == '=' && !(bp[1] == '=' || bp[1] == '>'))
{
if (colon && !c_isspace (colon[1]))
name = colon + 1;
|| LOOKING_AT (cp, "module"))
{
const char self_name[] = "self.";
- const size_t self_size1 = sizeof ("self.") - 1;
+ const size_t self_size1 = sizeof (self_name) - 1;
name = cp;
make_tag (name, cp - name, true,
lb.buffer, cp - lb.buffer + 1, lineno, linecharno);
}
+ else
+ {
+ /* Tag accessors and aliases. */
+ while (*cp && *cp != '#')
+ {
+ bool reader = false, writer = false, alias = false;
+
+ if (LOOKING_AT (cp, "attr_reader"))
+ reader = true;
+ else if (LOOKING_AT (cp, "attr_writer"))
+ writer = true;
+ else if (LOOKING_AT (cp, "attr_accessor"))
+ {
+ reader = true;
+ writer = true;
+ }
+ else if (LOOKING_AT (cp, "alias_method"))
+ alias = true;
+ if (reader || writer || alias)
+ {
+ do {
+ char *np = cp;
+
+ cp = skip_name (cp);
+ if (reader)
+ make_tag (np, cp - np, true,
+ lb.buffer, cp - lb.buffer + 1,
+ lineno, linecharno);
+ if (writer)
+ {
+ size_t name_len = cp - np + 1;
+ char *wr_name = xnew (name_len + 1, char);
+
+ memcpy (wr_name, np, name_len - 1);
+ memcpy (wr_name + name_len - 1, "=", 2);
+ pfnote (wr_name, true, lb.buffer, cp - lb.buffer + 1,
+ lineno, linecharno);
+ }
+ if (alias)
+ {
+ make_tag (np, cp - np, true,
+ lb.buffer, cp - lb.buffer + 1,
+ lineno, linecharno);
+ while (*cp && *cp != '#' && *cp != ';')
+ cp++;
+ }
+ } while (*cp == ','
+ && (cp = skip_spaces (cp + 1), *cp && *cp != '#'));
+ }
+ cp = skip_name (cp);
+ while (*cp && *cp != '#' && notinname (*cp))
+ cp++;
+ }
+ }
}
}
/wh ps-src/rfc1245.ps /^\/wh { $/
/yen ps-src/rfc1245.ps /^\/yen \/.notdef \/.notdef \/.notdef \/.notdef \/.notdef /
:a-forth-dictionary-entry forth-src/test-forth.fth /^create :a-forth-dictionary-entry$/
+:bar= ruby-src/test1.ruby /^ attr_writer :bar$/
+:foo ruby-src/test1.ruby /^ attr_reader :foo$/
+:qux ruby-src/test1.ruby /^ alias_method :qux, :tee$/
+:read1 ruby-src/test1.ruby /^ attr_reader :read1, :read2; attr_writer :wri/
+:read2 ruby-src/test1.ruby /^ attr_reader :read1, :read2; attr_writer :wri/
+:tee ruby-src/test1.ruby /^ attr_accessor :tee$/
+:tee= ruby-src/test1.ruby /^ attr_accessor :tee$/
+:write1= ruby-src/test1.ruby /^ attr_reader :read1, :read2; attr_writer :wri/
+:write2= ruby-src/test1.ruby /^ attr_reader :read1, :read2; attr_writer :wri/
< tex-src/texinfo.tex /^\\def<{{\\tt \\less}}$/
<< ruby-src/test.rb /^ def <<(y)$/
<= ruby-src/test.rb /^ def <=(y)$/
Condition_Variable/t ada-src/2ataspri.ads /^ type Condition_Variable is$/
Configure pyt-src/server.py /^class Configure(Frame, ControlEdit):$/
ConfirmQuit pyt-src/server.py /^def ConfirmQuit(frame, context):$/
-Constant ruby-src/test1.ruby 26
+Constant ruby-src/test1.ruby 35
ControlEdit pyt-src/server.py /^class ControlEdit(Frame):$/
Controls pyt-src/server.py /^class Controls:$/
CopyTextString pas-src/common.pas /^function CopyTextString;(*($/
DOS_NT c-src/etags.c 118
DUMPED c-src/emacs/src/gmalloc.c 80
Debug cp-src/functions.cpp /^void Debug ( int lineno, int level, char* func , c/
+Def_ ruby-src/test1.ruby 12
DisposeANameList pas-src/common.pas /^procedure DisposeANameList( $/
DisposeNameList pas-src/common.pas /^procedure DisposeNameList;$/
ELEM_I c-src/h.h 3
Write_Lock/p ada-src/2ataspri.adb /^ procedure Write_Lock (L : in out Lock; Ceiling_/
Write_Lock/p ada-src/2ataspri.ads /^ procedure Write_Lock (L : in out Lock; Ceiling_/
X c-src/h.h 100
+X ruby-src/test1.ruby /^ def X$/
XBOOL_VECTOR c-src/emacs/src/lisp.h /^XBOOL_VECTOR (Lisp_Object a)$/
XBUFFER c-src/emacs/src/lisp.h /^XBUFFER (Lisp_Object a)$/
XBUFFER_OBJFWD c-src/emacs/src/lisp.h /^XBUFFER_OBJFWD (union Lisp_Fwd *a)$/
XUNTAG c-src/emacs/src/lisp.h /^XUNTAG (Lisp_Object a, int type)$/
XWINDOW c-src/emacs/src/lisp.h /^XWINDOW (Lisp_Object a)$/
XX cp-src/x.cc 1
+Xyzzy ruby-src/test1.ruby 13
Y c-src/h.h 100
YACC c-src/etags.c 2199
YELLOW cp-src/screen.hpp 26
def module_instance_method\7f46,1051
def ModuleExample.module_class_method\7fmodule_class_method\ 149,1131
\f
-ruby-src/test1.ruby,191
+ruby-src/test1.ruby,635
class A\7f1,0
def a(\7f2,8
def b(\7f5,38
module A\7f9,57
class B\7f10,66
ABC \7f11,76
- def foo!\7f13,89
- def self._bar?(\7f_bar?\ 116,111
- def qux=(\7fqux=\ 120,162
-A::Constant \7fConstant\ 126,211
+ Def_ \7f12,88
+ Xyzzy \7f13,106
+ def foo!\7f15,121
+ def self._bar?(\7f_bar?\ 118,143
+ def qux=(\7fqux=\ 122,194
+ def X\7f25,232
+ attr_reader :foo\7f26,242
+ attr_reader :read1,\7f27,265
+ attr_reader :read1, :read2;\7f27,265
+ attr_reader :read1, :read2; attr_writer :write1,\7f:write1=\ 127,265
+ attr_reader :read1, :read2; attr_writer :write1, :write2\7f:write2=\ 127,265
+ attr_writer :bar\7f:bar=\ 128,328
+ attr_accessor :tee\7f29,351
+ attr_accessor :tee\7f:tee=\ 129,351
+ alias_method :qux,\7f30,376
+A::Constant \7fConstant\ 135,425
\f
tex-src/testenv.tex,52
\newcommand{\nm}\7f\nm\ 14,77
def module_instance_method\7f46,1051
def ModuleExample.module_class_method\7fmodule_class_method\ 149,1131
\f
-ruby-src/test1.ruby,191
+ruby-src/test1.ruby,635
class A\7f1,0
def a(\7f2,8
def b(\7f5,38
module A\7f9,57
class B\7f10,66
ABC \7f11,76
- def foo!\7f13,89
- def self._bar?(\7f_bar?\ 116,111
- def qux=(\7fqux=\ 120,162
-A::Constant \7fConstant\ 126,211
+ Def_ \7f12,88
+ Xyzzy \7f13,106
+ def foo!\7f15,121
+ def self._bar?(\7f_bar?\ 118,143
+ def qux=(\7fqux=\ 122,194
+ def X\7f25,232
+ attr_reader :foo\7f26,242
+ attr_reader :read1,\7f27,265
+ attr_reader :read1, :read2;\7f27,265
+ attr_reader :read1, :read2; attr_writer :write1,\7f:write1=\ 127,265
+ attr_reader :read1, :read2; attr_writer :write1, :write2\7f:write2=\ 127,265
+ attr_writer :bar\7f:bar=\ 128,328
+ attr_accessor :tee\7f29,351
+ attr_accessor :tee\7f:tee=\ 129,351
+ alias_method :qux,\7f30,376
+A::Constant \7fConstant\ 135,425
\f
tex-src/testenv.tex,52
\newcommand{\nm}\7f\nm\ 14,77
def module_instance_method\7f46,1051
def ModuleExample.module_class_method\7fmodule_class_method\ 149,1131
\f
-ruby-src/test1.ruby,191
+ruby-src/test1.ruby,635
class A\7f1,0
def a(\7f2,8
def b(\7f5,38
module A\7f9,57
class B\7f10,66
ABC \7f11,76
- def foo!\7f13,89
- def self._bar?(\7f_bar?\ 116,111
- def qux=(\7fqux=\ 120,162
-A::Constant \7fConstant\ 126,211
+ Def_ \7f12,88
+ Xyzzy \7f13,106
+ def foo!\7f15,121
+ def self._bar?(\7f_bar?\ 118,143
+ def qux=(\7fqux=\ 122,194
+ def X\7f25,232
+ attr_reader :foo\7f26,242
+ attr_reader :read1,\7f27,265
+ attr_reader :read1, :read2;\7f27,265
+ attr_reader :read1, :read2; attr_writer :write1,\7f:write1=\ 127,265
+ attr_reader :read1, :read2; attr_writer :write1, :write2\7f:write2=\ 127,265
+ attr_writer :bar\7f:bar=\ 128,328
+ attr_accessor :tee\7f29,351
+ attr_accessor :tee\7f:tee=\ 129,351
+ alias_method :qux,\7f30,376
+A::Constant \7fConstant\ 135,425
\f
tex-src/testenv.tex,52
\newcommand{\nm}\7f\nm\ 14,77
def module_instance_method\7f46,1051
def ModuleExample.module_class_method\7fmodule_class_method\ 149,1131
\f
-ruby-src/test1.ruby,191
+ruby-src/test1.ruby,635
class A\7f1,0
def a(\7f2,8
def b(\7f5,38
module A\7f9,57
class B\7f10,66
ABC \7f11,76
- def foo!\7f13,89
- def self._bar?(\7f_bar?\ 116,111
- def qux=(\7fqux=\ 120,162
-A::Constant \7fConstant\ 126,211
+ Def_ \7f12,88
+ Xyzzy \7f13,106
+ def foo!\7f15,121
+ def self._bar?(\7f_bar?\ 118,143
+ def qux=(\7fqux=\ 122,194
+ def X\7f25,232
+ attr_reader :foo\7f26,242
+ attr_reader :read1,\7f27,265
+ attr_reader :read1, :read2;\7f27,265
+ attr_reader :read1, :read2; attr_writer :write1,\7f:write1=\ 127,265
+ attr_reader :read1, :read2; attr_writer :write1, :write2\7f:write2=\ 127,265
+ attr_writer :bar\7f:bar=\ 128,328
+ attr_accessor :tee\7f29,351
+ attr_accessor :tee\7f:tee=\ 129,351
+ alias_method :qux,\7f30,376
+A::Constant \7fConstant\ 135,425
\f
tex-src/testenv.tex,52
\newcommand{\nm}\7f\nm\ 14,77
def module_instance_method\7f46,1051
def ModuleExample.module_class_method\7fmodule_class_method\ 149,1131
\f
-ruby-src/test1.ruby,191
+ruby-src/test1.ruby,635
class A\7f1,0
def a(\7f2,8
def b(\7f5,38
module A\7f9,57
class B\7f10,66
ABC \7f11,76
- def foo!\7f13,89
- def self._bar?(\7f_bar?\ 116,111
- def qux=(\7fqux=\ 120,162
-A::Constant \7fConstant\ 126,211
+ Def_ \7f12,88
+ Xyzzy \7f13,106
+ def foo!\7f15,121
+ def self._bar?(\7f_bar?\ 118,143
+ def qux=(\7fqux=\ 122,194
+ def X\7f25,232
+ attr_reader :foo\7f26,242
+ attr_reader :read1,\7f27,265
+ attr_reader :read1, :read2;\7f27,265
+ attr_reader :read1, :read2; attr_writer :write1,\7f:write1=\ 127,265
+ attr_reader :read1, :read2; attr_writer :write1, :write2\7f:write2=\ 127,265
+ attr_writer :bar\7f:bar=\ 128,328
+ attr_accessor :tee\7f29,351
+ attr_accessor :tee\7f:tee=\ 129,351
+ alias_method :qux,\7f30,376
+A::Constant \7fConstant\ 135,425
\f
tex-src/testenv.tex,52
\newcommand{\nm}\7f\nm\ 14,77
def module_instance_method\7f46,1051
def ModuleExample.module_class_method\7fmodule_class_method\ 149,1131
\f
-ruby-src/test1.ruby,191
+ruby-src/test1.ruby,635
class A\7f1,0
def a(\7f2,8
def b(\7f5,38
module A\7f9,57
class B\7f10,66
ABC \7f11,76
- def foo!\7f13,89
- def self._bar?(\7f_bar?\ 116,111
- def qux=(\7fqux=\ 120,162
-A::Constant \7fConstant\ 126,211
+ Def_ \7f12,88
+ Xyzzy \7f13,106
+ def foo!\7f15,121
+ def self._bar?(\7f_bar?\ 118,143
+ def qux=(\7fqux=\ 122,194
+ def X\7f25,232
+ attr_reader :foo\7f26,242
+ attr_reader :read1,\7f27,265
+ attr_reader :read1, :read2;\7f27,265
+ attr_reader :read1, :read2; attr_writer :write1,\7f:write1=\ 127,265
+ attr_reader :read1, :read2; attr_writer :write1, :write2\7f:write2=\ 127,265
+ attr_writer :bar\7f:bar=\ 128,328
+ attr_accessor :tee\7f29,351
+ attr_accessor :tee\7f:tee=\ 129,351
+ alias_method :qux,\7f30,376
+A::Constant \7fConstant\ 135,425
\f
tex-src/testenv.tex,52
\newcommand{\nm}\7f\nm\ 14,77
module A
class B
ABC = 4
+ Def_ = 'blah'
+ Xyzzy =10
def foo!
end
def qux=(tee)
end
end
+ def X
+ attr_reader :foo
+ attr_reader :read1, :read2; attr_writer :write1, :write2
+ attr_writer :bar
+ attr_accessor :tee
+ alias_method :qux, :tee
+ end
end
end