]> code.delx.au - gnu-emacs/blobdiff - lib-src/etags.c
Minor fix in tagging Ruby accessors by etags
[gnu-emacs] / 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,