Def in cmdarg

allow method definition in `cmdarg`.
fix syntax error in the following code:
```ruby
bar def foo; self.each do end end
```