Skip to content

feat: support reordering modifers with a leading comment#1786

Merged
belav merged 2 commits intobelav:mainfrom
TimothyMakkison:leading_modifier
Dec 19, 2025
Merged

feat: support reordering modifers with a leading comment#1786
belav merged 2 commits intobelav:mainfrom
TimothyMakkison:leading_modifier

Conversation

@TimothyMakkison
Copy link
Contributor

@TimothyMakkison TimothyMakkison commented Dec 19, 2025

Resolves #1784

It might be possible reorder all modiferes with comments and keep this logic. Perhaps this breaks something 🤷

@TimothyMakkison TimothyMakkison marked this pull request as draft December 19, 2025 17:59
@TimothyMakkison TimothyMakkison marked this pull request as ready for review December 19, 2025 18:25
@TimothyMakkison
Copy link
Contributor Author

Changed the logic for assigning leading trivia because it would always trigger the SequenceEqual check.

Copy link
Owner

@belav belav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@belav belav merged commit 123ac5f into belav:main Dec 19, 2025
7 checks passed
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

Successfully merging this pull request may close these issues.

Order Modifiers (IDE0036) not formatting when code is preceded by a comment.

2 participants