mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parse.y: optional superclass
* parse.y (superclass): make superclass rule optional and allow any contents without a terminator. [EXPERIMENTAL] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8322c36a9b
commit
d311b7d0eb
4 changed files with 10 additions and 15 deletions
|
@ -619,6 +619,7 @@ class TestRDocMarkupToHtml < RDoc::Markup::FormatterTestCase
|
|||
'def x() end',
|
||||
'def x; end',
|
||||
'class C; end',
|
||||
'class C end',
|
||||
"module M end",
|
||||
'a # => blah',
|
||||
'x { |y| nil }',
|
||||
|
@ -629,7 +630,6 @@ class TestRDocMarkupToHtml < RDoc::Markup::FormatterTestCase
|
|||
]
|
||||
invalid_syntax = [
|
||||
'def x end',
|
||||
'class C end',
|
||||
'class C < end',
|
||||
'module M < C end',
|
||||
'a=># blah',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue