-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indentation of list argument broken. #21
Comments
Hmm, meson-mode indentation was implemented before there was any style guide and adheres to how indentation in many other emacs modes works. But I understand that it makes sense to support recommended indentation style. I'll look at that, but it may take me some time. Most probably, I'll make the indentation style configurable with the meson recommended style being the default and allowing people to switch to the previous "emacs style" if they want. |
It seems I was able to fix this even without introducing a "indentation style" configuration variable. I tested the above commit with |
Reopening this. The current solution is not ideal. List arguments are indented according to the style guide, but non-list argument are indented differently. lib = static_library('mylib', [
'getopt.c',
'lib.c',
'math.c',
],
include_directories : include_directories('include'),
c_args : '-Dxxx',
) I'll need to figure out, how to handle this consistently. Suggestions welcome :-) |
The Meson Style Guide contains this piece of code:
When I copy this into Emacs and indent it, the output is this:
This seems like unintended behavior to me.
The text was updated successfully, but these errors were encountered: