-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #182 from BalticAmadeus/151-ifformatter-formattes-…
…incorrectly-then-do-location-settings-is-set-to-new 151 Block Formatter incorrectly formats end
- Loading branch information
Showing
10 changed files
with
148 additions
and
59 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.blockFormatting": true}*/ | ||
|
||
do while true: | ||
a = 3. end. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.blockFormatting": true}*/ | ||
|
||
do while true: | ||
a = 3. | ||
end. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.blockFormatting": true}*/ | ||
|
||
do transaction: | ||
do while true: | ||
a = 3. end. | ||
end. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.blockFormatting": true}*/ | ||
|
||
do transaction: | ||
do while true: | ||
a = 3. | ||
end. | ||
end. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.blockFormatting": true}*/ | ||
|
||
do while true: define variable a as integer no-undo. end. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.blockFormatting": true}*/ | ||
|
||
do while true: define variable a as integer no-undo. end. |
14 changes: 14 additions & 0 deletions
14
resources/functionalTests/if/20-then-same-statement-new-do-new/input.p
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.ifFormatting": true, | ||
"AblFormatter.blockFormatting": true, | ||
"AblFormatter.ifFormattingThenLocation": "Same", | ||
"AblFormatter.ifFormattingStatementLocation": "New", | ||
"AblFormatter.ifFormattingDoLocation": "New"}*/ | ||
|
||
if something <> ? and something <> 0 then | ||
oObject:method(something). | ||
else if a = 3 then | ||
do: | ||
oObject:method(something). end. | ||
else | ||
message "a" |
15 changes: 15 additions & 0 deletions
15
resources/functionalTests/if/20-then-same-statement-new-do-new/target.p
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.ifFormatting": true, | ||
"AblFormatter.blockFormatting": true, | ||
"AblFormatter.ifFormattingThenLocation": "Same", | ||
"AblFormatter.ifFormattingStatementLocation": "New", | ||
"AblFormatter.ifFormattingDoLocation": "New"}*/ | ||
|
||
if something <> ? and something <> 0 then | ||
oObject:method(something). | ||
else if a = 3 then | ||
do: | ||
oObject:method(something). | ||
end. | ||
else | ||
message "a" |
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
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