GNU bug report logs - #22116
[PATCH] * etags.c: Add support for Ruby language.

Previous Next

Package: emacs;

Reported by: lu4nx <lx <at> shellcodes.org>

Date: Tue, 8 Dec 2015 16:35:02 UTC

Severity: normal

Tags: patch

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: lu4nx <lx.exe <at> qq.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: lu4nx <lx <at> shellcodes.org>, 22116 <at> debbugs.gnu.org
Subject: bug#22116: [PATCH] * etags.c: Add support for Ruby language.
Date: Wed, 9 Dec 2015 01:43:01 +0800
yes,it has nothing to do with Ruby, thanks ;-)



在 2015年12月9日,上午1:33,Eli Zaretskii <eliz <at> gnu.org> 写道:

>> From: lu4nx <lx <at> shellcodes.org>
>> Date: Tue,  8 Dec 2015 18:56:04 +0800
>> Cc: lu4nx <lx <at> shellcodes.org>
>> 
>> +/*
>> + * Ruby support
> 
> Thanks.
> 
>> @@ -4954,7 +4987,22 @@ Lua_functions (FILE *inf)
>>       (void)LOOKING_AT (bp, "local"); /* skip possible "local" */
>> 
>>       if (LOOKING_AT (bp, "function"))
>> -    get_tag (bp, NULL);
>> +    {
>> +      char *tag_name, *tp_dot, *tp_colon;
>> +
>> +      get_tag (bp, &tag_name);
>> +      /* If the tag ends with ".foo" or ":foo", make an additional tag for
>> +         "foo".  */
>> +      tp_dot = strrchr (tag_name, '.');
>> +      tp_colon = strrchr (tag_name, ':');
>> +      if (tp_dot || tp_colon)
>> +        {
>> +          char *p = tp_dot > tp_colon ? tp_dot : tp_colon;
>> +          int len_add = p - tag_name + 1;
>> +
>> +          get_tag (bp + len_add, NULL);
>> +        }
>> +    }
>>     }
>> }
> 
> This part is certainly not yours, and it has nothing to do with Ruby,
> AFAICT.  Right?
> 
> 
> 






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

Previous Next


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