-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for #1318: improve tracking of a single-line comment and its newline
- Loading branch information
1 parent
bcddac2
commit 03d8484
Showing
9 changed files
with
104 additions
and
192 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
...groovy.eclipse.refactoring.test/resources/Formatter/Formatter_Test_Braces_Start_Same2.txt
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,31 @@ | ||
###prop | ||
bracesEnd=next | ||
bracesStart=same | ||
indentation=space | ||
indentsize=4 | ||
multilineIndentation=4 | ||
setPreferences=true | ||
###src | ||
def method1() { | ||
// both comment and block with curly braces are needed | ||
if (flag) { | ||
println('method1') | ||
} | ||
} | ||
|
||
def method2() | ||
{ | ||
println('method2') | ||
} | ||
###exp | ||
def method1() { | ||
// both comment and block with curly braces are needed | ||
if (flag) { | ||
println('method1') | ||
} | ||
} | ||
|
||
def method2() { | ||
println('method2') | ||
} | ||
###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 |
---|---|---|
|
@@ -28,9 +28,6 @@ def blub() { | |
|
||
def b = 1 | ||
def c = 1 | ||
|
||
|
||
|
||
} | ||
|
||
###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 |
---|---|---|
|
@@ -29,9 +29,6 @@ def blub() { | |
|
||
def b = 1 | ||
def c = 1 | ||
|
||
|
||
|
||
} | ||
|
||
###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
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
32 changes: 0 additions & 32 deletions
32
...oring/src/org/codehaus/groovy/eclipse/refactoring/formatter/lineWrap/CorrectLineWrap.java
This file was deleted.
Oops, something went wrong.
38 changes: 0 additions & 38 deletions
38
....refactoring/src/org/codehaus/groovy/eclipse/refactoring/formatter/lineWrap/NextLine.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.