goby-lang / goby

Goby - Yet another programming language written in Go
MIT License
3.49k stars 171 forks source link

Comments after `def` causes panic #153

Closed hachi8833 closed 7 years ago

hachi8833 commented 7 years ago
class Foo
  def my_method # the comment causes panic
    49
  end
end
class Foo # the comment is safe
  def my_method
    49 # the comment is safe
  end # the comment is safe
end #the comment is safe
st0012 commented 7 years ago

Fixed, see https://github.com/goby-lang/goby/compare/01eec7ba1681...be4954caf9a4

hachi8833 commented 7 years ago

Confirmed this bug has been fixed on the current master branch. Thank you very much!