GDScript: Allow strings as multiline comments

Bring back the behavior in 3.x that was left out by oversight.
This commit is contained in:
George Marques 2023-02-09 10:16:00 -03:00
parent d02a7bc00d
commit f95967c299
No known key found for this signature in database
GPG key ID: 046BD46A3201E43D
5 changed files with 75 additions and 21 deletions

View file

@ -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")

View file

@ -0,0 +1,2 @@
GDTEST_OK
ok