Skip to content

Backreference in shorthand interpolation is interpreted as a global #1059

@Earlopain

Description

@Earlopain

I believe this is 100% inconsequential but I'll report this anyways:

"this is a #$+"
(dstr
  (str "this is a ")
  (gvar :$+))

But:

"this is a #{$+}"
(dstr
  (str "this is a ")
  (begin
    (back-ref :$+)))

It's not considered here:

interp_var = '#' (
global_var % { interp_var_kind = :gvar }
| class_var_v % { interp_var_kind = :cvar }
| instance_var_v % { interp_var_kind = :ivar }
);

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