Indentation Issue: multiline literal arrays #206

Open
jiacona opened this Issue Mar 7, 2014 · 1 comment

Projects

None yet

3 participants

@jiacona

Literal array (%w, %i, etc) elements do not indent when on multiple lines.

What I expect:

foo = %w[
  bar
  baz
]

What I get:

foo = %w[
bar
baz
]
@AndrewRadev
Vim-Ruby member

I think right now, we simply mark them as strings. The good thing about this is that you can indent them like that manually, as you type, and the indent script will not touch them.

Still, I understand how it might make sense to add special handling for them. It might be difficult to pull off since there are no special tokens to look for (commas, quotes). I'll see what I can do, but I can't promise anything.

@dkearns dkearns added the indent label Sep 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment