reasonml-editor / vim-reason-plus

Reason Vim editor integration
MIT License
153 stars 20 forks source link

Odd indentation of lists passed as argument to function #10

Open heralden opened 6 years ago

heralden commented 6 years ago

If you pass a list that spans over multiple lines to a function, each element will have the same indentation as the opening square bracket.

let myFunc = l: list(int) => l;

myFunc([1,
       2,
       3,
       4,
]);

Shouldn't the code be indented with a single tab width (in the style of javascript), like the following?

myFunc([
  1,
  2,
  3,
  4,
]);