summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-10 12:43:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-10 12:43:32 +0000
commitd8442c43066fe2ff875c74af5c8eda35437adb1e (patch)
tree29a0702ea1e81faa4832feb84cd6dca671362ac6 /parse.y
parentc84bdda47a9710a1ba0db1c847db8e224d0eaaf9 (diff)
parse.y: fix fatal messages
* parse.y (rb_parser_fatal): fix "parser" in the message which was replaced accidentally. it is not the argument name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/parse.y b/parse.y
index ff4fe986fe..90652686db 100644
--- a/parse.y
+++ b/parse.y
@@ -9307,7 +9307,7 @@ void
rb_parser_fatal(struct parser_params *p, const char *fmt, ...)
{
va_list ap;
- VALUE mesg = rb_str_new_cstr("internal p error: ");
+ VALUE mesg = rb_str_new_cstr("internal parser error: ");
va_start(ap, fmt);
rb_str_vcatf(mesg, fmt, ap);
@@ -9317,13 +9317,13 @@ rb_parser_fatal(struct parser_params *p, const char *fmt, ...)
mesg = rb_str_new(0, 0);
append_lex_state_name(p->lex.state, mesg);
- compile_error(p, "p->lex.state: %"PRIsVALUE, mesg);
+ compile_error(p, "lex.state: %"PRIsVALUE, mesg);
rb_str_resize(mesg, 0);
append_bitstack_value(p->cond_stack, mesg);
- compile_error(p, "p->cond_stack: %"PRIsVALUE, mesg);
+ compile_error(p, "cond_stack: %"PRIsVALUE, mesg);
rb_str_resize(mesg, 0);
append_bitstack_value(p->cmdarg_stack, mesg);
- compile_error(p, "p->cmdarg_stack: %"PRIsVALUE, mesg);
+ compile_error(p, "cmdarg_stack: %"PRIsVALUE, mesg);
if (p->debug_output == rb_stdout)
p->debug_output = rb_stderr;
p->debug = TRUE;