vim-reason-plus icon indicating copy to clipboard operation
vim-reason-plus copied to clipboard

Odd indentation of lists passed as argument to function

Open heralden opened this issue 6 years ago • 0 comments

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,
]);

heralden avatar May 25 '18 09:05 heralden