summaryrefslogtreecommitdiff
path: root/symbol.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-27 06:25:59 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-27 06:25:59 (GMT)
commitd8e1bf2760370bd50a49a778309227aff88ba3ec (patch)
tree82e557884ef8d1233735db676dc9ebad59a8b100 /symbol.c
parent5a277b4070ff1228e5c5cf07215d38fca7e51fe1 (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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/symbol.c b/symbol.c
index 1795415..d4d7b5e 100644
--- a/symbol.c
+++ b/symbol.c
@@ -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)