Improve string ergonomics
x87 opened this issue · 2 comments
x87 commented
- string literals (both single and double quoted) should support escape sequences. currently only strings inside hex..end do that:
hex
"\t" // compiles as 09 (code for a TAB character)
end
0@v = "\t" // compiles as 5C 74 ("\t")
- strings should support multiple spaces without escaping
hex
"\t \t" // leave one space between \t
end
0@v = "\t \t" // same
- SB3_compat mode
x87 commented
Need compatibility mode to allow old scripts compile without having to make changes to strings using \{char} (e.g. "data\test.cs")
x87 commented
released in 4.0.0