Odd number of reverse solidus \
characters aren't allowed at the end of a raw string.
#90350
Milestone
\
characters aren't allowed at the end of a raw string.
#90350
Tested versions
v4.3.dev5.official [89f70e9]
System information
Godot v4.3.dev5 - Windows 10.0.22631 - GLES3 (Compatibility) - NVIDIA GeForce RTX 4090 (NVIDIA; 31.0.15.3699) - AMD Ryzen 9 7950X 16-Core Processor (32 Threads)
Issue description
Odd number of reverse solidus
\
characters aren't allowed at the end of a raw string.The following is valid syntax but results in "Unterminated string." - error:
r"\"
The following is valid syntax and works:
r"\\"
Bonus: The following is valid syntax and works, but is highlighted wrong:
All steps also apply for multiline raw strings.
Steps to reproduce
Write:
r"\"
in a gdscript file.
Minimal reproduction project (MRP)
Tiny mrp.
raw_strings.zip
The text was updated successfully, but these errors were encountered: