emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 4236944: Minor fix in tagging Ruby accessors by e


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-25 4236944: Minor fix in tagging Ruby accessors by etags
Date: Thu, 04 Feb 2016 17:24:15 +0000

branch: emacs-25
commit 4236944f19cb4df69dd3ae95fdcace83b76d4554
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    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 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib-src/etags.c b/lib-src/etags.c
index bb27589..0f5bfa3 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,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]