1
0
Fork 0
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:
nobu 2015-08-11 02:53:31 +00:00
parent 8322c36a9b
commit d311b7d0eb
4 changed files with 10 additions and 15 deletions

View file

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