aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorEli Zaretskii2016-02-06 11:08:20 +0200
committerEli Zaretskii2016-02-06 11:08:20 +0200
commit87ae21858adc173c129ff8dfec8ce74cd82e77be (patch)
tree4f1bb96cf27a38ed387746d1bc6e5d6e5bfd3678 /lib-src
parentaa35257118a09ff8c90d5dc364e8dc65e2fbd6dd (diff)
downloademacs-87ae21858adc173c129ff8dfec8ce74cd82e77be.tar.gz
emacs-87ae21858adc173c129ff8dfec8ce74cd82e77be.zip
Extend etags Ruby support for accessors
* lib-src/etags.c (Ruby_functions): Support accessors defined with parentheses. (Bug#22563) * test/etags/ruby-src/test1.ru (A::B): Add tests for accessors defined with parentheses. * test/etags/ETAGS.good_1: * test/etags/ETAGS.good_2: * test/etags/ETAGS.good_3: * test/etags/ETAGS.good_4: * test/etags/ETAGS.good_5: * test/etags/ETAGS.good_6: * test/etags/CTAGS.good: Adapt to changes in Ruby tests.
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 0f5bfa3a951..182cb4cc876 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -4730,8 +4730,12 @@ Ruby_functions (FILE *inf)
4730 if (reader || writer || alias) 4730 if (reader || writer || alias)
4731 { 4731 {
4732 do { 4732 do {
4733 char *np = cp; 4733 char *np;
4734 4734
4735 cp = skip_spaces (cp);
4736 if (*cp == '(')
4737 cp = skip_spaces (cp + 1);
4738 np = cp;
4735 cp = skip_name (cp); 4739 cp = skip_name (cp);
4736 if (*np != ':') 4740 if (*np != ':')
4737 continue; 4741 continue;