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
No known key found for this signature in database
GPG key ID: 124453E157DA8DC7
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.