dev icon indicating copy to clipboard operation
dev copied to clipboard

Improve string ergonomics

Open x87 opened this issue 11 months ago • 1 comments

  • [x] 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")
  • [x] strings should support multiple spaces without escaping
hex
  "\t     \t" // leave one space between \t
end

0@v = "\t     \t" // same
  • [x] SB3_compat mode

x87 avatar Sep 10 '23 03:09 x87