[ruby-cvs:67297] nobu:r60116 (trunk): parse.y: fix var_field

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Oct 4 15:47:29 JST 2017


nobu	2017-10-04 15:47:29 +0900 (Wed, 04 Oct 2017)

  New Revision: 60116

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60116

  Log:
    parse.y: fix var_field
    
    * parse.y (mlhs_node): dispatch var_field as well as lhs.
    
    * parse.y (lhs, var_hs): dispatch var_field before assignable
      check so it is inside assign_error at a wrong assignment, as
      well as backref_assign_error.
    
    * parse.y (var_field_gen): wrap var_field value with the variable
      ID.
    
    * parse.y (assignable_gen, const_decl_gen): return the callback
      result on a syntax error.

  Modified files:
    trunk/parse.y
    trunk/test/ripper/test_parser_events.rb


More information about the ruby-cvs mailing list