diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-25 01:12:07 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-25 01:12:07 +0000 |
commit | 1a98528cb7afc8f8de5af50e5d51c83b251ea860 (patch) | |
tree | c26e3c6adc0c5cfe5e6c7c3c0d45bc3839262be4 /symbol.c | |
parent | 898fd2ed2ad13d8c18b6a96304a8ea75ffd96b59 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |