mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rdoc: Import RDoc 2.5.2
* lib/rdoc/parser/ruby.rb (RDoc::Parser::Ruby): Don't parse rdoc files, reverts r24976 in favor of include directive support in C parser. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ce2b574017
commit
1325437297
33 changed files with 395 additions and 162 deletions
|
@ -1246,11 +1246,19 @@ end
|
|||
|
||||
# If you're writing code like this you're doing it wrong
|
||||
|
||||
def x_test_sanity_interpolation_crazy
|
||||
def test_sanity_interpolation_crazy
|
||||
last_tk = nil
|
||||
util_parser '"#{"#{"a")}" if b}"'
|
||||
|
||||
assert_equal RDoc::RubyToken::TkDSTRING, tk.class
|
||||
assert_equal '"#{"#{"a")}" if b}"', @parser.get_tk.text
|
||||
assert_equal RDoc::RubyToken::TkNL, @parser.get_tk.class
|
||||
end
|
||||
|
||||
def test_sanity_interpolation_curly
|
||||
last_tk = nil
|
||||
util_parser '%{ #{} }'
|
||||
|
||||
assert_equal '%{ #{} }', @parser.get_tk.text
|
||||
assert_equal RDoc::RubyToken::TkNL, @parser.get_tk.class
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue