summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib-src/etags.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index bb2758941a4..0f5bfa3a951 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -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,