Skip to content

"#$-1" interpreted as shorthand global interpolation, is just a string literal#1063

Description

@Earlopain
puts "#$-1" => # "\#$-1"
# Current:
s(:dstr,
  s(:gvar, :$-1))
# I would expect:
s(:str, "\#$-1")

Uncertain of the rules, it seems to be a valid global variable name 馃し

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions