ruby: Properly skip documentation contents

This commit is contained in:
Colomban Wendling 2015-07-23 18:08:28 +02:00
parent e9e9b9988d
commit e003da2bea
4 changed files with 30 additions and 0 deletions

View File

@ -331,6 +331,8 @@ static void findRubyTags (void)
inMultiLineComment = FALSE;
continue;
}
if (inMultiLineComment)
continue;
skipWhitespace (&cp);

View File

@ -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 \

22
tests/ctags/ruby-doc.rb Normal file
View File

@ -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

View File

@ -0,0 +1,5 @@
# format=tagmanager
f0Ì128Ö0
f1Ì128Ö0
f2Ì128Ö0
f3Ì128Ö0