If I write an "if" in javascript that use curly braces, the behavior of Geany if fine, as it closes the curly brace exactly in the direction of the opening if. BUT when I do this in PHP file, the closing curly brace is put one TAB to right, forcing the user to delete the extra TAB. Should be reviewed in all languages that use curly braces ? It is at least an inconsistency in Geany.

Right behavior (ex: javascript)

  if ( acondition == 1 ){
     code;
  } // <--- closing indentation ok in javascript

Geany with PHP file now is doing this:

  if ( $acondition == 1 ){
      code;
      } // closing bad indentation


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/issues/3655@github.com>