]> code.delx.au - gnu-emacs/commitdiff
Minor fix in tagging Ruby accessors by etags
authorEli Zaretskii <eliz@gnu.org>
Thu, 4 Feb 2016 17:23:12 +0000 (19:23 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 4 Feb 2016 17:23:12 +0000 (19:23 +0200)
* lib-src/etags.c (Ruby_functions): Don't tag accessors whose
names are not literal symbols.  (Bug#22241)

lib-src/etags.c

index bb2758941a413ae001cb16666ebc4f9c56c7aac9..0f5bfa3a951b64be5699d99ad4ff0f1bbc37029b 100644 (file)
@@ -4732,9 +4732,10 @@ Ruby_functions (FILE *inf)
                  do {
                    char *np = cp;
 
-                   if (*np == ':')
-                     np++;
                    cp = skip_name (cp);
+                   if (*np != ':')
+                     continue;
+                   np++;
                    if (reader)
                      {
                        make_tag (np, cp - np, true,