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
Formatting for the group multiline alignment for match arm arrows #6074 #6884
Merged
junichi11
merged 1 commit into
apache:master
from
junichi11:php-gh-6074-match-arm-w-arrow-alignment
Dec 27, 2023
Merged
Formatting for the group multiline alignment for match arm arrows #6074 #6884
junichi11
merged 1 commit into
apache:master
from
junichi11:php-gh-6074-match-arm-w-arrow-alignment
Dec 27, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
junichi11
commented
Dec 27, 2023
php/php.editor/src/org/netbeans/modules/php/editor/indent/FormatToken.java
Show resolved
Hide resolved
junichi11
commented
Dec 27, 2023
php/php.editor/src/org/netbeans/modules/php/editor/indent/FormatToken.java
Show resolved
Hide resolved
junichi11
commented
Dec 27, 2023
php/php.editor/src/org/netbeans/modules/php/editor/indent/TokenFormatter.java
Show resolved
Hide resolved
junichi11
commented
Dec 27, 2023
php/php.editor/test/unit/data/testfiles/formatting/alignment/issue210617.php.formatted
Show resolved
Hide resolved
tmysik
reviewed
Dec 27, 2023
php/php.editor/src/org/netbeans/modules/php/editor/indent/CodeStyle.java
Outdated
Show resolved
Hide resolved
tmysik
approved these changes
Dec 27, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great to have all the tests, thanks!
@tmysik Thank you for your quick review! I'll merge it after I fix the typos :) |
junichi11
force-pushed
the
php-gh-6074-match-arm-w-arrow-alignment
branch
from
December 27, 2023 12:10
5271e29
to
53dd6d3
Compare
…che#6074 - apache#6074 - Add "Match Arm Arrow" as an alignment option - Add/Fix unit tests Example: ```php match ($type1) { 'integer', 'test' => 'test', 'string' => match ($type2) { 1, 2 => "test", 3 => "test", 4 => "test", }, default => null, }; ``` Result: ```php match ($type1) { 'integer', 'test' => 'test', 'string' => match ($type2) { 1, 2 => "test", 3 => "test", 4 => "test", }, default => null, }; ```
junichi11
force-pushed
the
php-gh-6074-match-arm-w-arrow-alignment
branch
from
December 27, 2023 16:27
53dd6d3
to
0737cce
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Example:
Result: