[前][次][番号順一覧][スレッド一覧]

ruby-changes:45506

From: nobu <ko1@a...>
Date: Thu, 9 Feb 2017 16:53:58 +0900 (JST)
Subject: [ruby-changes:45506] nobu:r57578 (trunk): parse.y: fix idCOLON2

nobu	2017-02-09 16:53:52 +0900 (Thu, 09 Feb 2017)

  New Revision: 57578

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

  Log:
    parse.y: fix idCOLON2
    
    * defs/id.def: remove idDSTAR and idCOLON3.
    
    * parse.y (tCOLON2): make same as id.h.

  Modified files:
    trunk/defs/id.def
    trunk/parse.y
Index: defs/id.def
===================================================================
--- defs/id.def	(revision 57577)
+++ defs/id.def	(revision 57578)
@@ -76,7 +76,6 @@ token_ops = %[\ https://github.com/ruby/ruby/blob/trunk/defs/id.def#L76
   UPlus         +@      UPLUS
   UMinus        -@      UMINUS
   Pow           **      POW
-  DSTAR         **
   Cmp           <=>     CMP
   PLUS          +
   MINUS         -
@@ -99,7 +98,6 @@ token_ops = %[\ https://github.com/ruby/ruby/blob/trunk/defs/id.def#L98
   AREF          []
   ASET          []=
   COLON2        ::
-  COLON3        ::
   ANDOP         &&
   OROP          ||
   ANDDOT        &.
Index: parse.y
===================================================================
--- parse.y	(revision 57577)
+++ parse.y	(revision 57578)
@@ -943,7 +943,7 @@ static void token_info_pop_gen(struct pa https://github.com/ruby/ruby/blob/trunk/parse.y#L943
 %token tLSHFT		RUBY_TOKEN(LSHFT)  "<<"
 %token tRSHFT		RUBY_TOKEN(RSHFT)  ">>"
 %token tANDDOT		RUBY_TOKEN(ANDDOT) "&."
-%token tCOLON2		"::"
+%token tCOLON2		RUBY_TOKEN(COLON2) "::"
 %token tCOLON3		":: at EXPR_BEG"
 %token <id> tOP_ASGN	/* +=, -=  etc. */
 %token tASSOC		"=>"

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]