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
Wrong indentation #138
Comments
Also: $a = array('test',
'it'
);
$a = ['test',
'it'
];
# exptected:
$a = array('test',
'it'
);
$a = ['test',
'it'
]; |
@crocket Would you please show what indentation you expect and with which style? I.e. Thanks both for reporting the indentation issues. |
I don't know any style, but I want indentations exactly as below.
However, I'm also okay with the following indentations.
Thankfully, none of styles that I can give to "C-c ." would satisfy me. |
I think Debian Bug #286416 might be related to this issue, and maybe helps clarify the nature of the problem. Cyril Bouthors writes:
|
Ah, quoting dropped the critical indentation. Oops. Here's what that bug actually reported:
I can confirm that the "incorrect indentation" in the second case is present in php-mode-1.21.4. Also, the first case appears differently in this release. It looks like this:
I don't know whether this is a genuine issue, or just a style thing. |
@sten0 If you change the php-style to |
Thank you @mallt :-D |
Tijs Mallaerts <notifications@github.com> writes:
@sten0 If you change the php-style to `drupal` you should be able to achieve the desired indendation: <kbd>M-x php-set-style</kbd> and then select `drupal`.
Thank you, I was able to close Debian bug with this info :-)
|
If you press TAB in an anonymous function, indentation goes wrong.
The text was updated successfully, but these errors were encountered: