Ruby_functions (FILE *inf)
{
char *cp = NULL;
+ bool reader = false, writer = false, alias = false, continuation = false;
LOOP_ON_INPUT_LINES (inf, lb, cp)
{
char *name;
cp = skip_spaces (cp);
- if (c_isalpha (*cp) && c_isupper (*cp)) /* constants */
+ if (!continuation
+ /* Constants. */
+ && c_isalpha (*cp) && c_isupper (*cp))
{
char *bp, *colon = NULL;
}
}
}
- else if ((is_method = LOOKING_AT (cp, "def")) /* module/class/method */
- || (is_class = LOOKING_AT (cp, "class"))
- || LOOKING_AT (cp, "module"))
+ else if (!continuation
+ /* Modules, classes, methods. */
+ && ((is_method = LOOKING_AT (cp, "def"))
+ || (is_class = LOOKING_AT (cp, "class"))
+ || LOOKING_AT (cp, "module")))
{
const char self_name[] = "self.";
const size_t self_size1 = sizeof (self_name) - 1;
else
{
/* Tag accessors and aliases. */
+
+ if (!continuation)
+ reader = writer = alias = false;
+
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"))
+ if (!continuation)
{
- reader = true;
- writer = true;
+ reader = writer = 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;
}
- else if (LOOKING_AT (cp, "alias_method"))
- alias = true;
if (reader || writer || alias)
{
do {
np++;
cp = skip_name (cp);
if (reader)
- make_tag (np, cp - np, true,
- lb.buffer, cp - lb.buffer + 1,
- lineno, linecharno);
+ {
+ make_tag (np, cp - np, true,
+ lb.buffer, cp - lb.buffer + 1,
+ lineno, linecharno);
+ continuation = false;
+ }
if (writer)
{
size_t name_len = cp - np + 1;
memcpy (wr_name + name_len - 1, "=", 2);
pfnote (wr_name, true, lb.buffer, cp - lb.buffer + 1,
lineno, linecharno);
+ continuation = false;
}
if (alias)
{
- make_tag (np, cp - np, true,
- lb.buffer, cp - lb.buffer + 1,
- lineno, linecharno);
+ if (!continuation)
+ make_tag (np, cp - np, true,
+ lb.buffer, cp - lb.buffer + 1,
+ lineno, linecharno);
+ continuation = false;
while (*cp && *cp != '#' && *cp != ';')
- cp++;
+ {
+ if (*cp == ',')
+ continuation = true;
+ else if (!c_isspace (*cp))
+ continuation = false;
+ cp++;
+ }
+ if (*cp == ';')
+ continuation = false;
}
- } while (*cp == ','
+ cp = skip_spaces (cp);
+ } while ((alias
+ ? (*cp == ',')
+ : (continuation = (*cp == ',')))
&& (cp = skip_spaces (cp + 1), *cp && *cp != '#'));
}
- cp = skip_name (cp);
+ if (*cp != '#')
+ cp = skip_name (cp);
while (*cp && *cp != '#' && notinname (*cp))
cp++;
}
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.ru 35
+Constant ruby-src/test1.ru 39
ControlEdit pyt-src/server.py /^class ControlEdit(Frame):$/
Controls pyt-src/server.py /^class Controls:$/
CopyTextString pas-src/common.pas /^function CopyTextString;(*($/
bar c.c 143
bar c-src/h.h 19
bar cp-src/x.cc /^XX::bar()$/
-bar= ruby-src/test1.ru /^ attr_writer :bar$/
+bar= ruby-src/test1.ru /^ attr_writer :bar,$/
bas_syn prol-src/natded.prolog /^bas_syn(n(_)).$/
base c-src/emacs/src/lisp.h 2188
base cp-src/c.C /^double base (void) const { return rng_base; }$/
base cp-src/Range.h /^ double base (void) const { return rng_base; }$/
+baz= ruby-src/test1.ru /^ :baz,$/
bb c.c 275
bbb c.c 251
bbbbbb c-src/h.h 113
modify_event_symbol c-src/emacs/src/keyboard.c /^modify_event_symbol (ptrdiff_t symbol_num, int mod/
module_class_method ruby-src/test.rb /^ def ModuleExample.module_class_method$/
module_instance_method ruby-src/test.rb /^ def module_instance_method$/
+more= ruby-src/test1.ru /^ :more$/
more_aligned_int c.c 165
morecore_nolock c-src/emacs/src/gmalloc.c /^morecore_nolock (size_t size)$/
morecore_recursing c-src/emacs/src/gmalloc.c 604
quiettest make-src/Makefile /^quiettest:$/
quit_char c-src/emacs/src/keyboard.c 192
quit_throw_to_read_char c-src/emacs/src/keyboard.c /^quit_throw_to_read_char (bool from_signal)$/
-qux ruby-src/test1.ru /^ alias_method :qux, :tee$/
+qux ruby-src/test1.ru /^ alias_method :qux, :tee, attr_accessor :bogu/
qux= ruby-src/test1.ru /^ def qux=(tee)$/
r0 c-src/sysdep.h 54
r1 c-src/sysdep.h 55
read php-src/lce_functions.php /^ function read()$/
read-key-sequence c-src/emacs/src/keyboard.c /^DEFUN ("read-key-sequence", Fread_key_sequence, Sr/
read-key-sequence-vector c-src/emacs/src/keyboard.c /^DEFUN ("read-key-sequence-vector", Fread_key_seque/
-read1 ruby-src/test1.ru /^ attr_reader :read1, :read2; attr_writer :wri/
-read2 ruby-src/test1.ru /^ attr_reader :read1, :read2; attr_writer :wri/
+read1 ruby-src/test1.ru /^ attr_reader :read1 , :read2; attr_writer :wr/
+read2 ruby-src/test1.ru /^ attr_reader :read1 , :read2; attr_writer :wr/
read_char c-src/emacs/src/keyboard.c /^read_char (int commandflag, Lisp_Object map,$/
read_char_help_form_unwind c-src/emacs/src/keyboard.c /^read_char_help_form_unwind (void)$/
read_char_minibuf_menu_prompt c-src/emacs/src/keyboard.c /^read_char_minibuf_menu_prompt (int commandflag,$/
subsubsec=\relax tex-src/texinfo.tex /^\\let\\appendixsubsubsec=\\relax$/
subsubsection perl-src/htlmify-cystic 27
subsubsection=\relax tex-src/texinfo.tex /^\\let\\appendixsubsubsection=\\relax$/
+subtle ruby-src/test1.ru /^ :tee ; attr_reader :subtle$/
subtree prol-src/natded.prolog /^subtree(T,T).$/
suffix c-src/etags.c 186
suffixes c-src/etags.c 195
word_size c-src/emacs/src/lisp.h 1473
write php-src/lce_functions.php /^ function write()$/
write php-src/lce_functions.php /^ function write($save="yes")$/
-write1= ruby-src/test1.ru /^ attr_reader :read1, :read2; attr_writer :wri/
-write2= ruby-src/test1.ru /^ attr_reader :read1, :read2; attr_writer :wri/
+write1= ruby-src/test1.ru /^ attr_reader :read1 , :read2; attr_writer :wr/
+write2= ruby-src/test1.ru /^ attr_reader :read1 , :read2; attr_writer :wr/
write_abbrev c-src/abbrev.c /^write_abbrev (sym, stream)$/
write_classname c-src/etags.c /^write_classname (linebuffer *cn, const char *quali/
write_lex prol-src/natded.prolog /^write_lex(File):-$/
xref-make-etags-location el-src/emacs/lisp/progmodes/etags.el /^(defun xref-make-etags-location (tag-info file)$/
xrnew c-src/etags.c /^#define xrnew(op, n, Type) ((op) = (Type *) xreall/
xx make-src/Makefile /^xx="this line is here because of a fontlock bug$/
+xyz ruby-src/test1.ru /^ alias_method :xyz,$/
y cp-src/conway.hpp 7
y cp-src/clheir.hpp 49
y cp-src/clheir.hpp 58
def module_instance_method\7f46,1051
def ModuleExample.module_class_method\7fmodule_class_method\ 149,1131
\f
-ruby-src/test1.ru,655
+ruby-src/test1.ru,828
class A\7f1,0
def a(\7f2,8
def b(\7f5,38
def qux=(\7fqux=\ 122,194
def X\7f25,232
attr_reader :foo\7ffoo\ 126,242
- attr_reader :read1,\7fread1\ 127,265
- attr_reader :read1, :read2;\7fread2\ 127,265
- attr_reader :read1, :read2; attr_writer :write1,\7fwrite1=\ 127,265
- attr_reader :read1, :read2; attr_writer :write1, :write2\7fwrite2=\ 127,265
- attr_writer :bar\7fbar=\ 128,328
- attr_accessor :tee\7ftee\ 129,351
- attr_accessor :tee\7ftee=\ 129,351
- alias_method :qux,\7fqux\ 130,376
-A::Constant \7fConstant\ 135,425
+ attr_reader :read1 \7fread1\ 127,265
+ attr_reader :read1 , :read2;\7fread2\ 127,265
+ attr_reader :read1 , :read2; attr_writer :write1,\7fwrite1=\ 127,265
+ attr_reader :read1 , :read2; attr_writer :write1, :write2\7fwrite2=\ 127,265
+ attr_writer :bar,\7fbar=\ 128,329
+ :baz,\7fbaz=\ 129,353
+ :more\7fmore=\ 130,377
+ attr_accessor :tee\7ftee\ 131,401
+ attr_accessor :tee\7ftee=\ 131,401
+ alias_method :qux,\7fqux\ 132,426
+ alias_method :xyz,\7fxyz\ 133,478
+ :tee ; attr_reader :subtle\7fsubtle\ 134,503
+A::Constant \7fConstant\ 139,568
\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.ru,655
+ruby-src/test1.ru,828
class A\7f1,0
def a(\7f2,8
def b(\7f5,38
def qux=(\7fqux=\ 122,194
def X\7f25,232
attr_reader :foo\7ffoo\ 126,242
- attr_reader :read1,\7fread1\ 127,265
- attr_reader :read1, :read2;\7fread2\ 127,265
- attr_reader :read1, :read2; attr_writer :write1,\7fwrite1=\ 127,265
- attr_reader :read1, :read2; attr_writer :write1, :write2\7fwrite2=\ 127,265
- attr_writer :bar\7fbar=\ 128,328
- attr_accessor :tee\7ftee\ 129,351
- attr_accessor :tee\7ftee=\ 129,351
- alias_method :qux,\7fqux\ 130,376
-A::Constant \7fConstant\ 135,425
+ attr_reader :read1 \7fread1\ 127,265
+ attr_reader :read1 , :read2;\7fread2\ 127,265
+ attr_reader :read1 , :read2; attr_writer :write1,\7fwrite1=\ 127,265
+ attr_reader :read1 , :read2; attr_writer :write1, :write2\7fwrite2=\ 127,265
+ attr_writer :bar,\7fbar=\ 128,329
+ :baz,\7fbaz=\ 129,353
+ :more\7fmore=\ 130,377
+ attr_accessor :tee\7ftee\ 131,401
+ attr_accessor :tee\7ftee=\ 131,401
+ alias_method :qux,\7fqux\ 132,426
+ alias_method :xyz,\7fxyz\ 133,478
+ :tee ; attr_reader :subtle\7fsubtle\ 134,503
+A::Constant \7fConstant\ 139,568
\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.ru,655
+ruby-src/test1.ru,828
class A\7f1,0
def a(\7f2,8
def b(\7f5,38
def qux=(\7fqux=\ 122,194
def X\7f25,232
attr_reader :foo\7ffoo\ 126,242
- attr_reader :read1,\7fread1\ 127,265
- attr_reader :read1, :read2;\7fread2\ 127,265
- attr_reader :read1, :read2; attr_writer :write1,\7fwrite1=\ 127,265
- attr_reader :read1, :read2; attr_writer :write1, :write2\7fwrite2=\ 127,265
- attr_writer :bar\7fbar=\ 128,328
- attr_accessor :tee\7ftee\ 129,351
- attr_accessor :tee\7ftee=\ 129,351
- alias_method :qux,\7fqux\ 130,376
-A::Constant \7fConstant\ 135,425
+ attr_reader :read1 \7fread1\ 127,265
+ attr_reader :read1 , :read2;\7fread2\ 127,265
+ attr_reader :read1 , :read2; attr_writer :write1,\7fwrite1=\ 127,265
+ attr_reader :read1 , :read2; attr_writer :write1, :write2\7fwrite2=\ 127,265
+ attr_writer :bar,\7fbar=\ 128,329
+ :baz,\7fbaz=\ 129,353
+ :more\7fmore=\ 130,377
+ attr_accessor :tee\7ftee\ 131,401
+ attr_accessor :tee\7ftee=\ 131,401
+ alias_method :qux,\7fqux\ 132,426
+ alias_method :xyz,\7fxyz\ 133,478
+ :tee ; attr_reader :subtle\7fsubtle\ 134,503
+A::Constant \7fConstant\ 139,568
\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.ru,655
+ruby-src/test1.ru,828
class A\7f1,0
def a(\7f2,8
def b(\7f5,38
def qux=(\7fqux=\ 122,194
def X\7f25,232
attr_reader :foo\7ffoo\ 126,242
- attr_reader :read1,\7fread1\ 127,265
- attr_reader :read1, :read2;\7fread2\ 127,265
- attr_reader :read1, :read2; attr_writer :write1,\7fwrite1=\ 127,265
- attr_reader :read1, :read2; attr_writer :write1, :write2\7fwrite2=\ 127,265
- attr_writer :bar\7fbar=\ 128,328
- attr_accessor :tee\7ftee\ 129,351
- attr_accessor :tee\7ftee=\ 129,351
- alias_method :qux,\7fqux\ 130,376
-A::Constant \7fConstant\ 135,425
+ attr_reader :read1 \7fread1\ 127,265
+ attr_reader :read1 , :read2;\7fread2\ 127,265
+ attr_reader :read1 , :read2; attr_writer :write1,\7fwrite1=\ 127,265
+ attr_reader :read1 , :read2; attr_writer :write1, :write2\7fwrite2=\ 127,265
+ attr_writer :bar,\7fbar=\ 128,329
+ :baz,\7fbaz=\ 129,353
+ :more\7fmore=\ 130,377
+ attr_accessor :tee\7ftee\ 131,401
+ attr_accessor :tee\7ftee=\ 131,401
+ alias_method :qux,\7fqux\ 132,426
+ alias_method :xyz,\7fxyz\ 133,478
+ :tee ; attr_reader :subtle\7fsubtle\ 134,503
+A::Constant \7fConstant\ 139,568
\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.ru,655
+ruby-src/test1.ru,828
class A\7f1,0
def a(\7f2,8
def b(\7f5,38
def qux=(\7fqux=\ 122,194
def X\7f25,232
attr_reader :foo\7ffoo\ 126,242
- attr_reader :read1,\7fread1\ 127,265
- attr_reader :read1, :read2;\7fread2\ 127,265
- attr_reader :read1, :read2; attr_writer :write1,\7fwrite1=\ 127,265
- attr_reader :read1, :read2; attr_writer :write1, :write2\7fwrite2=\ 127,265
- attr_writer :bar\7fbar=\ 128,328
- attr_accessor :tee\7ftee\ 129,351
- attr_accessor :tee\7ftee=\ 129,351
- alias_method :qux,\7fqux\ 130,376
-A::Constant \7fConstant\ 135,425
+ attr_reader :read1 \7fread1\ 127,265
+ attr_reader :read1 , :read2;\7fread2\ 127,265
+ attr_reader :read1 , :read2; attr_writer :write1,\7fwrite1=\ 127,265
+ attr_reader :read1 , :read2; attr_writer :write1, :write2\7fwrite2=\ 127,265
+ attr_writer :bar,\7fbar=\ 128,329
+ :baz,\7fbaz=\ 129,353
+ :more\7fmore=\ 130,377
+ attr_accessor :tee\7ftee\ 131,401
+ attr_accessor :tee\7ftee=\ 131,401
+ alias_method :qux,\7fqux\ 132,426
+ alias_method :xyz,\7fxyz\ 133,478
+ :tee ; attr_reader :subtle\7fsubtle\ 134,503
+A::Constant \7fConstant\ 139,568
\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.ru,655
+ruby-src/test1.ru,828
class A\7f1,0
def a(\7f2,8
def b(\7f5,38
def qux=(\7fqux=\ 122,194
def X\7f25,232
attr_reader :foo\7ffoo\ 126,242
- attr_reader :read1,\7fread1\ 127,265
- attr_reader :read1, :read2;\7fread2\ 127,265
- attr_reader :read1, :read2; attr_writer :write1,\7fwrite1=\ 127,265
- attr_reader :read1, :read2; attr_writer :write1, :write2\7fwrite2=\ 127,265
- attr_writer :bar\7fbar=\ 128,328
- attr_accessor :tee\7ftee\ 129,351
- attr_accessor :tee\7ftee=\ 129,351
- alias_method :qux,\7fqux\ 130,376
-A::Constant \7fConstant\ 135,425
+ attr_reader :read1 \7fread1\ 127,265
+ attr_reader :read1 , :read2;\7fread2\ 127,265
+ attr_reader :read1 , :read2; attr_writer :write1,\7fwrite1=\ 127,265
+ attr_reader :read1 , :read2; attr_writer :write1, :write2\7fwrite2=\ 127,265
+ attr_writer :bar,\7fbar=\ 128,329
+ :baz,\7fbaz=\ 129,353
+ :more\7fmore=\ 130,377
+ attr_accessor :tee\7ftee\ 131,401
+ attr_accessor :tee\7ftee=\ 131,401
+ alias_method :qux,\7fqux\ 132,426
+ alias_method :xyz,\7fxyz\ 133,478
+ :tee ; attr_reader :subtle\7fsubtle\ 134,503
+A::Constant \7fConstant\ 139,568
\f
tex-src/testenv.tex,52
\newcommand{\nm}\7f\nm\ 14,77
end
def X
attr_reader :foo
- attr_reader :read1, :read2; attr_writer :write1, :write2
- attr_writer :bar
+ attr_reader :read1 , :read2; attr_writer :write1, :write2
+ attr_writer :bar,
+ :baz,
+ :more
attr_accessor :tee
- alias_method :qux, :tee
+ alias_method :qux, :tee, attr_accessor :bogus
+ alias_method :xyz,
+ :tee ; attr_reader :subtle
end
end
end