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 /template/id.h.tmpl | |
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 'template/id.h.tmpl')
-rw-r--r-- | template/id.h.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/template/id.h.tmpl b/template/id.h.tmpl index d7e10e9330..6db478bd31 100644 --- a/template/id.h.tmpl +++ b/template/id.h.tmpl @@ -80,6 +80,7 @@ enum ruby_method_ids { idLTLT = RUBY_TOKEN(LSHFT), idLE = RUBY_TOKEN(LEQ), idGT = '>', + idGTGT = RUBY_TOKEN(RSHFT), idGE = RUBY_TOKEN(GEQ), idEq = RUBY_TOKEN(EQ), idEqq = RUBY_TOKEN(EQQ), @@ -90,6 +91,7 @@ enum ruby_method_ids { idNeqTilde = RUBY_TOKEN(NMATCH), idAREF = RUBY_TOKEN(AREF), idASET = RUBY_TOKEN(ASET), + idCOLON2 = RUBY_TOKEN(COLON2), tPRESERVED_ID_BEGIN = <%=op_id_offset + token_op_ids.size - 1%>, % ids[:preserved].each do |token| id<%=token%>, |