Skip to content

Commit

Permalink
Fixed another problem with ruby option hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRadev committed Apr 16, 2011
1 parent 0767d84 commit 056d3a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/sj/ruby.vim
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ function! s:AddBraces(pos)
normal! $
call search('\v.\s+do\s*', 'b', line('.'))
call search('\v.\s+\{\s*\|.*\|.*$', 'b', line('.'))
call search('\v.\)', 'b', line('.'))
call search('\v.(\)$)|(\)\s)', 'b', line('.'))

if &filetype == 'eruby'
call search('\s-\?%>', 'b', line('.'))
Expand Down
1 change: 1 addition & 0 deletions examples/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class Bar
redirect_to root_path, :error => 'f'

mail(:to => 'me', :from => 'me')
mail :to => t('me'), :from => 'me'

# TODO: no-bracket options with nested hashes

Expand Down

0 comments on commit 056d3a2

Please sign in to comment.