Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
yui-knk committed Apr 25, 2024
1 parent b255d23 commit f031e2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -7480,6 +7480,8 @@ ruby_show_error_line(struct parser_params *p, VALUE errbuf, VALUE mesg, const YY
long len;
int i;

fprintf(stderr, "ruby_show_error_line %s\n", PARSER_STRING_PTR(str));

if (!yylloc) return;
pend = rb_parser_string_end(str);
if (pend > pbeg && pend[-1] == '\n') {
Expand Down Expand Up @@ -7738,7 +7740,7 @@ append_error_message(struct parser_params *p, rb_parser_errors_t *errors, VALUE

append_error_message_to_str(p, str, fn, error);
if (error->lastline) {
// ruby_show_error_line(p, Qtrue, str, &error->loc, error->lineno, error->lastline);
ruby_show_error_line(p, Qtrue, str, &error->loc, error->lineno, error->lastline);
}
}
}
Expand Down

0 comments on commit f031e2f

Please sign in to comment.