[ruby/prism] Fix opening loc for an empty symbol

241d0169da
This commit is contained in:
Max Prokopiev 2024-02-15 11:46:40 +01:00 committed by git
parent a5cee8fa79
commit 49ddbbf39f
2 changed files with 1 additions and 1 deletions

View file

@ -14206,7 +14206,6 @@ parse_strings(pm_parser_t *parser, pm_node_t *current) {
// If we get here, then we have an end of a label immediately
// after a start. In that case we'll create an empty symbol
// node.
pm_token_t opening = not_provided(parser);
pm_token_t content = parse_strings_empty_content(parser->previous.start);
pm_symbol_node_t *symbol = pm_symbol_node_create(parser, &opening, &content, &parser->previous);