Skip to content

Improve string ergonomics #255

Closed
Closed

Description

@x87
  • 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

Activity

  1. added this to the v3.10.0 milestone on Sep 24, 2023
  2. x87 commented on Oct 29, 2023

    @x87
    CollaboratorAuthor

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

  3. x87 commented on Aug 7, 2024

    @x87
    CollaboratorAuthor

    released in 4.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:p3scope:compilertype:nice-to-have

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions