Skip to content
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

Curly brackets attached to same line #61

Open
gorm opened this issue Feb 11, 2024 · 1 comment
Open

Curly brackets attached to same line #61

gorm opened this issue Feb 11, 2024 · 1 comment

Comments

@gorm
Copy link

gorm commented Feb 11, 2024

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants