emacs-php / emacs-php/php-mode

Indenting of curly braces

Open
#114 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
Emacs Lisp
Stars
602
Forks
117
Avg merge
12h 54m
Merged PRs (30d)
3

Description

I can't seem to get `php-mode` to indent curly braces correctly. For instance, if the intended result is:

``` php
if(expression)
{
statement;
}
```

... I always get:

``` php
if(expression)
{ // badly indented
statement;
} // badly indented
```

This with `c-default-style` set to `linux` and `c-basic-offset` to 2.

I've had a look in the `php-mode` group searching for any customizations that might affect brace indentation but didn't find any.

This can't be a bug: what am I missing?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.