diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/etags.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c index d511bc39588..6dde9c42e13 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -5069,7 +5069,10 @@ Ruby_functions (FILE *inf) /* Ruby method names can end in a '='. Also, operator overloading can define operators whose names include '='. */ while (!notinname (*cp) || *cp == '=') - cp++; + { + cp++; + if (*(cp - 1) == ':') name = cp; + } /* Remove "self." from the method name. */ if (cp - name > self_size1 |
