indentation problem in e.g. array and hash definitions

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

indentation problem in e.g. array and hash definitions

Dirk Traulsen
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 }



_______________________________________________
vim-ruby-devel mailing list
[hidden email]
http://rubyforge.org/mailman/listinfo/vim-ruby-devel

indent_error_3.rb (884 bytes) Download Attachment
Loading...