Skip to content

Commit

Permalink
Set contains_keywords flag for implicit gets($/, chomp: true) method …
Browse files Browse the repository at this point in the history
…call to handle -l CLI option
  • Loading branch information
andrykonchin committed Oct 7, 2024
1 parent 1653317 commit 85fb122
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/prism.c
Original file line number Diff line number Diff line change
Expand Up @@ -21905,6 +21905,7 @@ wrap_statements(pm_parser_t *parser, pm_statements_node_t *statements) {
));

pm_arguments_node_arguments_append(arguments, (pm_node_t *) keywords);
pm_node_flag_set((pm_node_t *) arguments, PM_ARGUMENTS_NODE_FLAGS_CONTAINS_KEYWORDS);
}

pm_statements_node_t *wrapped_statements = pm_statements_node_create(parser);
Expand Down

0 comments on commit 85fb122

Please sign in to comment.