summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2016-02-04 19:23:12 +0200
committerEli Zaretskii <eliz@gnu.org>2016-02-04 19:23:12 +0200
commit4236944f19cb4df69dd3ae95fdcace83b76d4554 (patch)
tree8f33c66d5190fa6872e40d339c1ff355ce692ecc /lib-src
parent35fc77dcebc7b097365fe05a33b9a627203a5f83 (diff)
Minor fix in tagging Ruby accessors by etags
* lib-src/etags.c (Ruby_functions): Don't tag accessors whose names are not literal symbols. (Bug#22241)
Diffstat (limited to 'lib-src')
-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 bb2758941a..0f5bfa3a95 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,