1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

parse.y: removed "parser_" prefix from tokadd_utf8

This commit is contained in:
Nobuyoshi Nakada 2019-05-27 12:22:11 +09:00
parent af17e111b3
commit ea6e284d86
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -6180,7 +6180,7 @@ tokadd_codepoint(struct parser_params *p, rb_encoding **encp,
/* return value is for ?\u3042 */ /* return value is for ?\u3042 */
static void static void
parser_tokadd_utf8(struct parser_params *p, rb_encoding **encp, tokadd_utf8(struct parser_params *p, rb_encoding **encp,
int string_literal, int symbol_literal, int regexp_literal) int string_literal, int symbol_literal, int regexp_literal)
{ {
/* /*
@ -6567,7 +6567,7 @@ tokadd_string(struct parser_params *p,
tokadd(p, '\\'); tokadd(p, '\\');
break; break;
} }
parser_tokadd_utf8(p, enc, term, tokadd_utf8(p, enc, term,
func & STR_FUNC_SYMBOL, func & STR_FUNC_SYMBOL,
func & STR_FUNC_REGEXP); func & STR_FUNC_REGEXP);
continue; continue;
@ -8063,7 +8063,7 @@ parse_qmark(struct parser_params *p, int space_seen)
if (peek(p, 'u')) { if (peek(p, 'u')) {
nextc(p); nextc(p);
enc = rb_utf8_encoding(); enc = rb_utf8_encoding();
parser_tokadd_utf8(p, &enc, -1, 0, 0); tokadd_utf8(p, &enc, -1, 0, 0);
} }
else if (!lex_eol_p(p) && !(c = *p->lex.pcur, ISASCII(c))) { else if (!lex_eol_p(p) && !(c = *p->lex.pcur, ISASCII(c))) {
nextc(p); nextc(p);