diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-05 13:29:01 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-05 13:29:01 +0000 |
commit | 768e6c1328a77295d1c5b6c53175b511ec073ee6 (patch) | |
tree | 1f1ffbab52aeaeb31fbf320a01b24a779833f186 /ext/ripper/eventids2.c | |
parent | df27d91fc4de9215d6af58de191b2c105ef88678 (diff) | |
download | ruby-768e6c1328a77295d1c5b6c53175b511ec073ee6.tar.gz |
* parse.y (stmt, mlhs_node, lhs, arg, method_call): aref_args might be
nothing. fixed: [ruby-dev:26952]
* ext/ripper/eventids2.c: added new tokens. fixed: [ruby-dev:26952]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/ripper/eventids2.c')
-rw-r--r-- | ext/ripper/eventids2.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/ripper/eventids2.c b/ext/ripper/eventids2.c index 0ce96a12d3..fc8e28ea68 100644 --- a/ext/ripper/eventids2.c +++ b/ext/ripper/eventids2.c @@ -42,6 +42,10 @@ static ID ripper_id_qwords_beg; static ID ripper_id_words_sep; static ID ripper_id_regexp_beg; static ID ripper_id_regexp_end; +static ID ripper_id_label; +static ID ripper_id_lambda; +static ID ripper_id_lambda_arg; +static ID ripper_id_lambeg; static ID ripper_id_ignored_nl; static ID ripper_id_comment; @@ -90,6 +94,10 @@ ripper_init_eventids2() ripper_id_words_sep = rb_intern("on_words_sep"); ripper_id_regexp_beg = rb_intern("on_regexp_beg"); ripper_id_regexp_end = rb_intern("on_regexp_end"); + ripper_id_label = rb_intern("on_label"); + ripper_id_lambda = rb_intern("on_lambda"); + ripper_id_lambda_arg = rb_intern("on_lambda_arg"); + ripper_id_lambeg = rb_intern("on_lambeg"); ripper_id_ignored_nl = rb_intern("on_ignored_nl"); ripper_id_comment = rb_intern("on_comment"); @@ -234,6 +242,10 @@ static struct token_assoc { {tUPLUS, &ripper_id_op}, {tWORDS_BEG, &ripper_id_words_beg}, {tXSTRING_BEG, &ripper_id_backtick}, + {tLABEL, &ripper_id_label}, + {tLAMBDA, &ripper_id_lambda}, + {tLAMBDA_ARG, &ripper_id_lambda_arg}, + {tLAMBEG, &ripper_id_lambeg}, /* ripper specific tokens */ {tIGNORED_NL, &ripper_id_ignored_nl}, |