Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
yui-knk committed Apr 24, 2024
1 parent 8ea2ee3 commit 481d70e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -10616,13 +10616,12 @@ parse_gvar(struct parser_params *p, const enum lex_state_e last_state)
if (!parser_is_identchar(p)) {
YYLTYPE loc = RUBY_INIT_YYLLOC();
if (c == -1 || ISSPACE(c)) {
compile_error(p, "'$' without identifiers is not allowed as a global variable name");
parser_compile_error(p, &loc, "'$' without identifiers is not allowed as a global variable name");
}
else {
pushback(p, c);
compile_error(p, "'$%c' is not allowed as a global variable name", c);
parser_compile_error(p, &loc, "'$%c' is not allowed as a global variable name", c);
}
parser_show_error_line(p, &loc);
set_yylval_noname();
return tGVAR;
}
Expand Down

0 comments on commit 481d70e

Please sign in to comment.