diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-16 14:32:41 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-16 14:32:41 +0000 |
commit | 360f85eb8b3f7df4374dbfb64a1700527dee3776 (patch) | |
tree | d5fefc99f1f906db53cbb840192bcbb84867b85e | |
parent | 80d502b88116e95e4b17b4e7278d0d47106253db (diff) | |
download | ruby-360f85eb8b3f7df4374dbfb64a1700527dee3776.tar.gz |
parse.y (numeric_literal_flush): fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | parse.y | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -4885,12 +4885,12 @@ ripper_yylval_id(ID x) #endif #ifndef RIPPER -#define numeric_literl_flush(p) (parser->tokp = (p)) +#define numeric_literal_flush(p) (parser->tokp = (p)) #define dispatch_scan_event(t) ((void)0) #define dispatch_delayed_token(t) ((void)0) #define has_delayed_token() (0) #else -#define numeric_literl_flush(p) ((void)0) +#define numeric_literal_flush(p) ((void)0) #define yylval_rval (*(RB_TYPE_P(yylval.val, T_NODE) ? &yylval.node->nd_rval : &yylval.val)) @@ -6532,7 +6532,7 @@ parser_number_literal_suffix(struct parser_params *parser, int mask) } if (!ISASCII(c) || ISALPHA(c) || c == '_') { lex_p = lastp; - numeric_literl_flush(lex_p); + numeric_literal_flush(lex_p); return 0; } pushback(c); @@ -6546,7 +6546,7 @@ parser_number_literal_suffix(struct parser_params *parser, int mask) } break; } - numeric_literl_flush(lex_p); + numeric_literal_flush(lex_p); return result; } @@ -7375,7 +7375,7 @@ parse_numeric(struct parser_params *parser, int c) if (nondigit) { char tmp[30]; trailing_uc: - numeric_literl_flush(lex_p - 1); + numeric_literal_flush(lex_p - 1); snprintf(tmp, sizeof(tmp), "trailing `%c' in number", nondigit); yyerror(tmp); } @@ -7397,7 +7397,7 @@ parse_numeric(struct parser_params *parser, int c) } v = DBL2NUM(d); } - numeric_literl_flush(lex_p); + numeric_literal_flush(lex_p); return set_number_literal(v, type, suffix); } suffix = number_literal_suffix(NUM_SUFFIX_ALL); |