unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: lu4nx <lx.exe@qq.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: lu4nx <lx@shellcodes.org>, 22116@debbugs.gnu.org
Subject: bug#22116: [PATCH] * etags.c: Add support for Ruby language.
Date: Wed, 9 Dec 2015 01:43:01 +0800	[thread overview]
Message-ID: <5F105694-F8F3-4BB2-B958-3AEB8D043597@qq.com> (raw)
In-Reply-To: <836108dew5.fsf@gnu.org>

yes,it has nothing to do with Ruby, thanks ;-)



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

>> From: lu4nx <lx@shellcodes.org>
>> Date: Tue,  8 Dec 2015 18:56:04 +0800
>> Cc: lu4nx <lx@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?
> 
> 
> 







  reply	other threads:[~2015-12-08 17:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-08 10:56 bug#22116: [PATCH] * etags.c: Add support for Ruby language lu4nx
2015-12-08 17:33 ` Eli Zaretskii
2015-12-08 17:43   ` lu4nx [this message]
2015-12-26  4:36     ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5F105694-F8F3-4BB2-B958-3AEB8D043597@qq.com \
    --to=lx.exe@qq.com \
    --cc=22116@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=lx@shellcodes.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).