ruby: Properly skip documentation contents
This commit is contained in:
parent
e9e9b9988d
commit
e003da2bea
@ -331,6 +331,8 @@ static void findRubyTags (void)
|
||||
inMultiLineComment = FALSE;
|
||||
continue;
|
||||
}
|
||||
if (inMultiLineComment)
|
||||
continue;
|
||||
|
||||
skipWhitespace (&cp);
|
||||
|
||||
|
@ -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
22
tests/ctags/ruby-doc.rb
Normal 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
|
5
tests/ctags/ruby-doc.rb.tags
Normal file
5
tests/ctags/ruby-doc.rb.tags
Normal file
@ -0,0 +1,5 @@
|
||||
# format=tagmanager
|
||||
f0Ì128Ö0
|
||||
f1Ì128Ö0
|
||||
f2Ì128Ö0
|
||||
f3Ì128Ö0
|
Loading…
x
Reference in New Issue
Block a user