aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-10 05:12:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-10 05:12:33 +0000
commitcc02df324f74fc84b9eae1e66bdf38f4422c249b (patch)
tree347db922f14e1167bbe73f403e1e7b9772dce5dd
parente86bf9a4d768df94c084c3cc8c0786bacad0f31a (diff)
downloadruby-cc02df324f74fc84b9eae1e66bdf38f4422c249b.tar.gz
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@67492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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;