emacs-php / php-ts-mode

A Tree-sitter based major mode for editing PHP codes
GNU General Public License v3.0
20 stars 8 forks source link

Fix multiline if statement indentation #71

Open Gleek opened 3 months ago

Gleek commented 3 months ago

Currently a multiline if statement is indented as follows:

if ($testing &&
$testing2
&& true
) {
    // do something
}

But instead should be indented as:

if ($testing &&
    $testing2
    && true
) {
    // do something
}

This change fixes this.

piotrkwiecinski commented 3 months ago

@Gleek @zonuexe probably we should deprecate this repository. Emacs 30 has php-ts-mode recently merged https://debbugs.gnu.org/cgi/bugreport.cgi?bug=71380. You can see it in mirror https://github.com/emacs-mirror/emacs/blob/master/lisp/progmodes/php-ts-mode.el

Any extra contributions should be done directly as patches to emacs