[geany/geany] e003da: ruby: Properly skip documentation contents

Colomban Wendling git-noreply at xxxxx
Mon Mar 14 18:27:22 UTC 2016


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Mon, 14 Mar 2016 18:27:22 UTC
Commit:      e003da2beafb02406a4a3912d5885f6db317d821
             https://github.com/geany/geany/commit/e003da2beafb02406a4a3912d5885f6db317d821

Log Message:
-----------
ruby: Properly skip documentation contents


Modified Paths:
--------------
    tagmanager/ctags/ruby.c
    tests/ctags/Makefile.am
    tests/ctags/ruby-doc.rb
    tests/ctags/ruby-doc.rb.tags

Modified: tagmanager/ctags/ruby.c
2 lines changed, 2 insertions(+), 0 deletions(-)
===================================================================
@@ -331,6 +331,8 @@ static void findRubyTags (void)
 			inMultiLineComment = FALSE;
 			continue;
 		}
+		if (inMultiLineComment)
+			continue;
 
 		skipWhitespace (&cp);
 


Modified: tests/ctags/Makefile.am
1 lines changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -255,6 +255,7 @@ test_sources = \
 	regexp.js						\
 	return-hint.zep					\
 	return-types.go					\
+	ruby-doc.rb						\
 	ruby-sf-bug-364.rb				\
 	rules.t2t						\
 	sample.t2t						\


Modified: tests/ctags/ruby-doc.rb
22 lines changed, 22 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,22 @@
+def f0; end
+
+=begin
+def bug1
+end
+=end
+
+def f1; end
+
+=begin 
+def bug2
+end
+=end
+
+def f2; end
+
+=begin	def doesntcount end
+def bug3
+end
+=end def notparsed end
+
+def f3; end


Modified: tests/ctags/ruby-doc.rb.tags
5 lines changed, 5 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,5 @@
+# format=tagmanager
+f0�128�0
+f1�128�0
+f2�128�0
+f3�128�0



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list