diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-27 06:23:09 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-27 06:23:09 +0000 |
commit | 5a277b4070ff1228e5c5cf07215d38fca7e51fe1 (patch) | |
tree | 6a130c572d10a120abf02ea3d9968b4af0e6020e /symbol.c | |
parent | fc9fffca1d4f44d740a726db00d9ef3c9cca1312 (diff) |
parse.y: optimize IDs in ripper
* parse.y: optimize ripper_intern calls, ::, **, -@, +@, <=>, >=,
<=, ==, ===, !=, =~, !~, <<, >>, and call.
* parse.y: use initialized IDs, warn and warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'symbol.c')
-rw-r--r-- | symbol.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -50,6 +50,7 @@ static ID register_static_symid_str(ID, VALUE); #define tASET RUBY_TOKEN(ASET) #define tLSHFT RUBY_TOKEN(LSHFT) #define tRSHFT RUBY_TOKEN(RSHFT) +#define tCOLON2 RUBY_TOKEN(COLON2) static const struct { unsigned short token; @@ -72,6 +73,7 @@ static const struct { {tASET, "[]="}, {tLSHFT, "<<"}, {tRSHFT, ">>"}, + {tCOLON2, "::"}, }; #define op_tbl_count numberof(op_tbl) |