summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 65720e85f4..796adaa5d0 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -4731,8 +4731,12 @@ Ruby_functions (FILE *inf)
if (reader || writer || alias)
{
do {
- char *np = cp;
+ char *np;
+ cp = skip_spaces (cp);
+ if (*cp == '(')
+ cp = skip_spaces (cp + 1);
+ np = cp;
cp = skip_name (cp);
if (*np != ':')
continue;