Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve string ergonomics #255

Closed
3 tasks done
Tracked by #277
x87 opened this issue Sep 10, 2023 · 2 comments
Closed
3 tasks done
Tracked by #277

Improve string ergonomics #255

x87 opened this issue Sep 10, 2023 · 2 comments
Labels
Milestone

Comments

@x87
Copy link
Collaborator

x87 commented Sep 10, 2023

  • 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 x87 added priority:p3 Low priority type:nice-to-have minor enhancements scope:compiler labels Sep 10, 2023
@x87 x87 added this to the v3.10.0 milestone Sep 24, 2023
@x87 x87 mentioned this issue Oct 13, 2023
59 tasks
@x87
Copy link
Collaborator Author

x87 commented Oct 29, 2023

Need compatibility mode to allow old scripts compile without having to make changes to strings using \{char} (e.g. "data\test.cs")

@x87
Copy link
Collaborator Author

x87 commented Aug 7, 2024

released in 4.0.0

@x87 x87 closed this as completed Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant