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

Curly brackets attached to same line #61

Open gorm opened 7 months ago

gorm commented 7 months ago

Hi and thanks for creating an awesome package!

I see some PHP dialects, like WordPress code style, prefer to put brackets on same line and not on next line. Would this be possible?

piotrkwiecinski commented 7 months ago

This is a very good question. We would have to make parts of https://github.com/emacs-php/php-ts-mode/blob/master/php-ts-mode.el#L308-L330 conditional.

Which code styles should be support? php-mode supports PEAR, Drupal, WordPress, Symfony2 and PSR-2. What do you thing @zonuexe?

Maybe we should try to add one more coding standard soon to work out the code and test structure.