atom / language-ruby

Ruby package for Atom
Other
101 stars 144 forks source link

Fix incorrect ending pattern for method definition with comment #213

Closed sounxrt closed 6 years ago

sounxrt commented 7 years ago

Description of the Change

Change detect of method definition ends taking into account comment character

Alternate Designs

None

Benefits

For example, create a new file.md and add the following code

```ruby
def foo(bar) # a comment
end
```

this text still has the scope meta.function.method.with-arguments.ruby which is incorrect

Possible Drawbacks

Unknown

Applicable Issues

None