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


Message #8 received at 22116 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: lu4nx <lx <at> shellcodes.org>
Cc: 22116 <at> debbugs.gnu.org
Subject: Re: bug#22116: [PATCH] * etags.c: Add support for Ruby language.
Date: Tue, 08 Dec 2015 19:33:14 +0200
> 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.