From 4236944f19cb4df69dd3ae95fdcace83b76d4554 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 4 Feb 2016 19:23:12 +0200 Subject: 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) --- lib-src/etags.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib-src') 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, -- cgit v1.2.3