ruby-changes:54694
From: nobu <ko1@a...>
Date: Wed, 23 Jan 2019 18:08:27 +0900 (JST)
Subject: [ruby-changes:54694] nobu:r66910 (trunk): parse.y: token names
nobu 2019-01-23 18:08:22 +0900 (Wed, 23 Jan 2019) New Revision: 66910 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66910 Log: parse.y: token names Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 66909) +++ parse.y (revision 66910) @@ -843,7 +843,7 @@ static void token_info_warn(struct parse https://github.com/ruby/ruby/blob/trunk/parse.y#L843 %token <node> tCHAR "char literal" %token <node> tNTH_REF "numbered reference" %token <node> tBACK_REF "back reference" -%token <node> tSTRING_CONTENT +%token <node> tSTRING_CONTENT "literal content" %token <num> tREGEXP_END %type <node> singleton strings string string1 xstring regexp @@ -903,7 +903,7 @@ static void token_info_warn(struct parse https://github.com/ruby/ruby/blob/trunk/parse.y#L903 %token <id> tCOLON2 RUBY_TOKEN(COLON2) "::" %token <id> tMETHREF RUBY_TOKEN(METHREF) ".:" %token tCOLON3 ":: at EXPR_BEG" -%token <id> tOP_ASGN /* +=, -= etc. */ +%token <id> tOP_ASGN "operator-assignment" /* +=, -= etc. */ %token tASSOC "=>" %token tLPAREN "(" %token tLPAREN_ARG "( arg" @@ -923,7 +923,8 @@ static void token_info_warn(struct parse https://github.com/ruby/ruby/blob/trunk/parse.y#L923 %token tQWORDS_BEG "verbatim word list" %token tSYMBOLS_BEG "symbol list" %token tQSYMBOLS_BEG "verbatim symbol list" -%token tSTRING_DBEG tSTRING_DEND tSTRING_DVAR tSTRING_END tLAMBEG tLABEL_END +%token tSTRING_END "terminator" +%token tSTRING_DBEG tSTRING_DEND tSTRING_DVAR tLAMBEG tLABEL_END /* * precedence table -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/