File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
src/main/java/pl/thedeem/intellij/dpl/style Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 2929### Bug fixes
3030
3131- [ #87 ] Avoiding outdated document modifications during injected fragments reformat action
32+ - DPL configuration expression will now be properly indented on the left side of the expression
3233
3334## [ 1.3.0] - 2026-01-11
3435
Original file line number Diff line number Diff line change @@ -68,12 +68,21 @@ private Indent getChildIndent(@NotNull ASTNode child) {
6868 if (parent instanceof DPLExpressionsSequence ) {
6969 return Indent .getNoneIndent ();
7070 }
71- if (parent instanceof DPLGroupExpression || parent instanceof DPLConfigurationExpression ) {
71+ if (parent instanceof DPLGroupExpression ) {
7272 if (childType == DPLTypes .L_PAREN || childType == DPLTypes .R_PAREN ) {
7373 return Indent .getNoneIndent ();
7474 }
7575 return Indent .getNormalIndent ();
7676 }
77+ if (parent instanceof DPLConfigurationExpression ) {
78+ if (childType == DPLTypes .L_PAREN || childType == DPLTypes .R_PAREN ) {
79+ return Indent .getNoneIndent ();
80+ }
81+ if (child .getPsi () instanceof DPLConfigurationContent ) {
82+ return Indent .getNormalIndent ();
83+ }
84+ return Indent .getNoneIndent ();
85+ }
7786 if (parent instanceof DPLCharacterGroupExpression ) {
7887 if (childType == DPLTypes .L_BRACKET || childType == DPLTypes .R_BRACKET ) {
7988 return Indent .getNoneIndent ();
You can’t perform that action at this time.
0 commit comments