indentation problem in e.g. array and hash definitions

Dirk Traulsen dirk.traulsen at lypso.de
Wed Jan 2 03:37:19 EST 2008


Hi!

Here is the indentation glitch #3.
My example here is the indentation of array and hash definitons.

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 $


# Nice indentation with '()':

Array.new(var_1,
          var_2,
          var_3 )


# but '[]' and '{}' are not recognized:

arr = [var_1,
  var_2,
  var_3 ]

hsh = {var_1 => 1,
  var_2 => 2,
  var_3 => 3 }


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


More information about the vim-ruby-devel mailing list