meson-mode icon indicating copy to clipboard operation
meson-mode copied to clipboard

Indentation of list argument broken.

Open Janfel opened this issue 4 years ago • 3 comments

The Meson Style Guide contains this piece of code:

sources = files([
  'aaa/a1.c',
  'aaa/a2.c',
  'bbb/subdir1/b1.c',
  'bbb/subdir2/b2.c',
  'bbb/subdir10/b3.c',
  'bbb/subdir20/b4.c',
  'bbb/b5.c',
  'bbb/b6.c',
  'f1.c',
  'f2.c',
  'f10.c',
  'f20.c'
])

When I copy this into Emacs and indent it, the output is this:

sources = files([
                 'aaa/a1.c',
                 'aaa/a2.c',
                 'bbb/subdir1/b1.c',
                 'bbb/subdir2/b2.c',
                 'bbb/subdir10/b3.c',
                 'bbb/subdir20/b4.c',
                 'bbb/b5.c',
                 'bbb/b6.c',
                 'f1.c',
                 'f2.c',
                 'f10.c',
                 'f20.c'
               ])

This seems like unintended behavior to me.

Janfel avatar Feb 16 '20 23:02 Janfel