diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2023-08-02 09:49:26 -0400 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-08-16 17:47:32 -0700 |
| commit | 3d032cf3e894fbfea00a81acf1fd90a29de9bb63 (patch) | |
| tree | 45f89ff2d650a4beaee35c19bf4c9070bafbb6eb /yarp/parser.h | |
| parent | b6f26c2e4a95e71f67b84e36b4368d6d820ffb5b (diff) | |
[ruby/yarp] Simplify creation of numerics
https://github.com/ruby/yarp/commit/e5f6ffa23a
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/8226
Diffstat (limited to 'yarp/parser.h')
| -rw-r--r-- | yarp/parser.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/yarp/parser.h b/yarp/parser.h index a23f886084..2091be7fd9 100644 --- a/yarp/parser.h +++ b/yarp/parser.h @@ -96,10 +96,7 @@ typedef struct yp_lex_mode { // This state is used when we are lexing a string or a string-like // token, as in string content with either quote or an xstring. - YP_LEX_STRING, - - // you lexed a number with extra information attached - YP_LEX_NUMERIC, + YP_LEX_STRING } mode; union { @@ -164,12 +161,6 @@ typedef struct yp_lex_mode { } string; struct { - yp_token_type_t type; - const char *start; - const char *end; - } numeric; - - struct { // These pointers point to the beginning and end of the heredoc // identifier. const char *ident_start; |
