Skip to content

fix: keep member chain line-end comments on the same line#894

Merged
jtkiesel merged 1 commit into
jhipster:mainfrom
jtkiesel:fix/member-chain-trailing-comments
May 19, 2026
Merged

fix: keep member chain line-end comments on the same line#894
jtkiesel merged 1 commit into
jhipster:mainfrom
jtkiesel:fix/member-chain-trailing-comments

Conversation

@jtkiesel
Copy link
Copy Markdown
Contributor

What changed with this PR:

Member chain trailing comments that are not own-line comments are kept on the same line as the member they follow.

Example

Input

a() // comment
  .b()
  .c();

a()
  .b() // comment
  .c();

Output

a() // comment
  .b()
  .c();

a()
  .b() // comment
  .c();

Relative issues or prs:

Closes #883

@jtkiesel jtkiesel force-pushed the fix/member-chain-trailing-comments branch from cccc94f to 17b2651 Compare May 19, 2026 03:23
@jtkiesel jtkiesel merged commit d3d6f6b into jhipster:main May 19, 2026
6 checks passed
@jtkiesel jtkiesel deleted the fix/member-chain-trailing-comments branch May 19, 2026 03:45
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.

[2.9.2] Regression with comment placement at the end of a line

1 participant