Skip to content

Commit 4fea64a

Browse files
committed
Add test case for indented comment at the end of a function body
Close #156
1 parent 1c0eb1d commit 4fea64a

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

tests/expected/comments_indentation.gd

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,13 @@ func test() -> void:
88

99
func test2():
1010
pass # This comment should stay here too
11+
12+
13+
func test3() -> void:
14+
print("Test")
15+
# This comment should stay at the end of the function
16+
17+
18+
# This comment should stay above the function
19+
func test4() -> void:
20+
print("Test")

tests/input/comments_indentation.gd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,11 @@ func test() -> void:
77

88
func test2():
99
pass # This comment should stay here too
10+
11+
func test3() -> void:
12+
print("Test")
13+
# This comment should stay at the end of the function
14+
15+
# This comment should stay above the function
16+
func test4() -> void:
17+
print("Test")

0 commit comments

Comments
 (0)