nelstrom/vim-textobj-rubyblock — pull request #15 by rob-anderson (2013-10-24 08:19:36+00:00)
Title: fix tailing ifs following quotes

Hi Drew

Thanks for your time yesterday - lots of new vim toys to play with.

As I mentioned in the class, trailing ifs can sometimes break this plugin. It looks like the problem only occurs when there are quotes before the if, eg:

```ruby
class Foo

def bar
puts 'hello' if baz
end

end
```

If you put the cursor on or after the 'if' keyword and press 'var' it works as expected. If you put the cursor on or before the word hello and press 'var', it's borked.

So I guess the problem is with your skip_pattern regexp. I tweaked it a bit to match any char (not just word chars) before the if, and that seems to do the trick.

Please review. And thanks for the excellent scotch!