You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Merge pull request #72971 from vnen/gdscript-multiline-comment
GDScript: Allow strings as multiline comments
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
"""
|
||||
This is a comment.
|
||||
"""
|
||||
|
||||
@tool
|
||||
|
||||
"""
|
||||
This is also a comment.
|
||||
"""
|
||||
|
||||
extends RefCounted
|
||||
|
||||
'''
|
||||
This is a comment too.
|
||||
'''
|
||||
|
||||
func test():
|
||||
"""
|
||||
This too is a comment.
|
||||
"""
|
||||
print("ok")
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_OK
|
||||
ok
|
||||
@@ -1,6 +1,5 @@
|
||||
func test():
|
||||
# The following statements should all be reported as standalone expressions:
|
||||
"This is a standalone expression"
|
||||
1234
|
||||
0.0 + 0.0
|
||||
Color(1, 1, 1)
|
||||
|
||||
@@ -8,14 +8,10 @@ GDTEST_OK
|
||||
>> STANDALONE_EXPRESSION
|
||||
>> Standalone expression (the line has no effect).
|
||||
>> WARNING
|
||||
>> Line: 5
|
||||
>> Line: 6
|
||||
>> STANDALONE_EXPRESSION
|
||||
>> Standalone expression (the line has no effect).
|
||||
>> WARNING
|
||||
>> Line: 7
|
||||
>> STANDALONE_EXPRESSION
|
||||
>> Standalone expression (the line has no effect).
|
||||
>> WARNING
|
||||
>> Line: 8
|
||||
>> STANDALONE_EXPRESSION
|
||||
>> Standalone expression (the line has no effect).
|
||||
|
||||
Reference in New Issue
Block a user