1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

GDScript: Add raw string literals (r-strings)

This commit is contained in:
Danil Alexeev
2023-08-28 13:00:33 +03:00
parent 221884e6bc
commit 2964c7d51c
13 changed files with 250 additions and 132 deletions

View File

@@ -0,0 +1,2 @@
func test():
print(r"\")

View File

@@ -0,0 +1,2 @@
GDTEST_PARSER_ERROR
Unterminated string.

View File

@@ -0,0 +1,2 @@
func test():
print(r"\\"")

View File

@@ -0,0 +1,2 @@
GDTEST_PARSER_ERROR
Unterminated string.

View File

@@ -0,0 +1,3 @@
func test():
# v
print(r"['"]*")

View File

@@ -0,0 +1,2 @@
GDTEST_PARSER_ERROR
Closing "]" doesn't have an opening counterpart.