aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2016-02-04 19:23:12 +0200
committerEli Zaretskii2016-02-04 19:23:12 +0200
commit4236944f19cb4df69dd3ae95fdcace83b76d4554 (patch)
tree8f33c66d5190fa6872e40d339c1ff355ce692ecc
parent35fc77dcebc7b097365fe05a33b9a627203a5f83 (diff)
downloademacs-4236944f19cb4df69dd3ae95fdcace83b76d4554.tar.gz
emacs-4236944f19cb4df69dd3ae95fdcace83b76d4554.zip
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)
-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)
4732 do { 4732 do {
4733 char *np = cp; 4733 char *np = cp;
4734 4734
4735 if (*np == ':')
4736 np++;
4737 cp = skip_name (cp); 4735 cp = skip_name (cp);
4736 if (*np != ':')
4737 continue;
4738 np++;
4738 if (reader) 4739 if (reader)
4739 { 4740 {
4740 make_tag (np, cp - np, true, 4741 make_tag (np, cp - np, true,