indentation problem with 'until' as a modifier

Dirk Traulsen dirk.traulsen at lypso.de
Wed Jan 2 03:31:10 EST 2008


Hi!

First I want say that I really appreciate what you have achieved with 
vim-ruby, which is a great help for me and a real pleasure to use. A 
big Thank You to everybody here who is or was involved!

Alas, it is not perfect. I have found some glitches, I want to report 
here. To allow to discuss them seperately, I will report them in three 
different mails.

I will always attach a file to show the correct indentation.

I hope this helps.
Thanks
Dirk

Please see the following, which is also attached as a file:

#---------------------------------------#
# file automatically indented with gg=G #
#---------------------------------------#

#vimfiles
#  indent: $Id: ruby.vim,v 1.40 2007/03/20 13:54:25 dkearns Exp $
#  syntax: $Id: ruby.vim,v 1.134 2007/05/06 17:55:04 tpope Exp $
#7.1
#  indent: $Id: ruby.vim,v 1.40 2007/03/20 13:54:25 dkearns Exp $
#  syntax: $Id: ruby.vim,v 1.134 2007/05/06 17:55:04 tpope Exp $


# The non-breaking of the line with '\' is not recognized,
# so that 'until' is recognized as a beginning loop and not
# as the modifier it is here.
print 'Do you want to delete this (y/n)? ' \
  until (result = gets.chomp.downcase).match(/^[yn]$/)
    puts 'result: ' + result


    # Here also 'until' is not recognized as a modifier
    begin print 'Do you want to delete this (y/n)? '
    end until (result = gets.chomp.downcase).match(/^[yn]$/)
      puts 'result: ' + result

-------------- next part --------------
A non-text attachment was scrubbed...
Name: indent_error_1.rb
Type: application/octet-stream
Size: 913 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/vim-ruby-devel/attachments/20080102/e0cc9c77/attachment.obj 


More information about the vim-ruby-devel mailing list