feat(php): improve indents in return statements & chained methods

This commit is contained in:
Caleb White 2024-03-16 19:50:13 -05:00 committed by GitHub
parent df3e6a24ac
commit 143ca5ce17
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 126 additions and 0 deletions

View file

@ -1,7 +1,9 @@
[
(array_creation_expression)
(parenthesized_expression)
(compound_statement)
(declaration_list)
(member_call_expression)
(binary_expression)
(return_statement)
(arguments)
@ -12,6 +14,17 @@
(case_statement)
] @indent.begin
(return_statement
[
(object_creation_expression)
(anonymous_function_creation_expression)
(arrow_function)
(match_expression)
]) @indent.dedent
(member_call_expression
object: (member_call_expression) @indent.branch)
[
")"
"}"
@ -20,9 +33,18 @@
(comment) @indent.auto
(arguments
")" @indent.end)
(formal_parameters
")" @indent.end)
(compound_statement
"}" @indent.end)
(return_statement
";" @indent.end)
(ERROR
"(" @indent.align
.