Actions
Bug #22596
closedparse.y splits regexp literal on #@, meaning named captures change
Bug #22596:
parse.y splits regexp literal on #@, meaning named captures change
Description
The #@ changes this node to a dynamic regexp, which means named captures don't get added to the local table. But that's kind of a quirk of the lexer more than anything, since it's looking for an interpolated variable. Prism makes that a regexp node (as opposed to an interpolated regexp node) meaning the captured local gets defined.
Updated by nobu (Nobuyoshi Nakada) 4 days ago
- Status changed from Open to Closed
Applied in changeset git|747eda819d2a63c24f29de7a15cad4d1fbf016f4.
[Bug #22596] Do not split string_content with false interpolations
Actions