Skip to content

String literal cannot produce a single backslash \ #1067

Open
@darinspivey

Description

@darinspivey

Problem

According to the documentation, a string literal of s'\\' should produce a single backslash, given that you have to escape backslash as a special character. The result of this should be "\\". Something seems off in the lexer where the escaped backslash is being literally interpreted, and the output becomes "\\\\".

Example

.nope = s'\\' --> "\\\\"

Version

Tested on the latest version as of this writing, version = "0.19.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions