diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-09 16:19:03 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-09 16:19:03 +0100 |
commit | dc7f08b556af3084e7776bf4308649f4984ef671 (patch) | |
tree | 63de466d22590f458661e0827f5b718220493aab /modules/gdscript/tests/scripts/parser/features | |
parent | ab4a7b2b77625f7a97714e46aec896ba12e5caec (diff) | |
parent | f95967c29993f4008a40ae1871a62f91bf301c47 (diff) |
Merge pull request #72971 from vnen/gdscript-multiline-comment
GDScript: Allow strings as multiline comments
Diffstat (limited to 'modules/gdscript/tests/scripts/parser/features')
-rw-r--r-- | modules/gdscript/tests/scripts/parser/features/allow_strings_as_comments.gd | 21 | ||||
-rw-r--r-- | modules/gdscript/tests/scripts/parser/features/allow_strings_as_comments.out | 2 |
2 files changed, 23 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/parser/features/allow_strings_as_comments.gd b/modules/gdscript/tests/scripts/parser/features/allow_strings_as_comments.gd new file mode 100644 index 0000000000..3ecd65ad9c --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/features/allow_strings_as_comments.gd @@ -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") diff --git a/modules/gdscript/tests/scripts/parser/features/allow_strings_as_comments.out b/modules/gdscript/tests/scripts/parser/features/allow_strings_as_comments.out new file mode 100644 index 0000000000..1b47ed10dc --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/features/allow_strings_as_comments.out @@ -0,0 +1,2 @@ +GDTEST_OK +ok |