diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-27 06:25:59 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-27 06:25:59 +0000 |
commit | d8e1bf2760370bd50a49a778309227aff88ba3ec (patch) | |
tree | 82e557884ef8d1233735db676dc9ebad59a8b100 /symbol.c | |
parent | 5a277b4070ff1228e5c5cf07215d38fca7e51fe1 (diff) |
id.h.tmpl: ANDOP and OROP
* template/id.h.tmpl (token_op_ids): define && and || for ripper.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'symbol.c')
-rw-r--r-- | symbol.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -51,6 +51,8 @@ static ID register_static_symid_str(ID, VALUE); #define tLSHFT RUBY_TOKEN(LSHFT) #define tRSHFT RUBY_TOKEN(RSHFT) #define tCOLON2 RUBY_TOKEN(COLON2) +#define tANDOP RUBY_TOKEN(ANDOP) +#define tOROP RUBY_TOKEN(OROP) static const struct { unsigned short token; @@ -74,6 +76,8 @@ static const struct { {tLSHFT, "<<"}, {tRSHFT, ">>"}, {tCOLON2, "::"}, + {tANDOP, "&&"}, + {tOROP, "||"}, }; #define op_tbl_count numberof(op_tbl) |