summaryrefslogtreecommitdiff
path: root/symbol.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-25 01:12:07 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-25 01:12:07 (GMT)
commit1a98528cb7afc8f8de5af50e5d51c83b251ea860 (patch)
treec26e3c6adc0c5cfe5e6c7c3c0d45bc3839262be4 /symbol.c
parent898fd2ed2ad13d8c18b6a96304a8ea75ffd96b59 (diff)
symbol.c: dotq in ripper
* symbol.c (op_tbl): add DOTQ for ripper. [Feature #11537] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'symbol.c')
-rw-r--r--symbol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/symbol.c b/symbol.c
index 9917795..f0ba5e7 100644
--- a/symbol.c
+++ b/symbol.c
@@ -50,6 +50,7 @@ static ID register_static_symid_str(ID, VALUE);
#define tCOLON2 RUBY_TOKEN(COLON2)
#define tANDOP RUBY_TOKEN(ANDOP)
#define tOROP RUBY_TOKEN(OROP)
+#define tDOTQ RUBY_TOKEN(DOTQ)
static const struct {
unsigned short token;
@@ -75,6 +76,7 @@ static const struct {
{tCOLON2, "::"},
{tANDOP, "&&"},
{tOROP, "||"},
+ {tDOTQ, ".?"},
};
#define op_tbl_count numberof(op_tbl)