ruby-changes:41009
From: yugui <ko1@a...>
Date: Sun, 13 Dec 2015 19:38:12 +0900 (JST)
Subject: [ruby-changes:41009] yugui:r53088 (trunk): * parse.y (lex_state_name): Make it return the correct names.
yugui 2015-12-13 19:37:52 +0900 (Sun, 13 Dec 2015) New Revision: 53088 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53088 Log: * parse.y (lex_state_name): Make it return the correct names. Add new names to follow r51617; Indices ffs(2) returns are 1-origin. Modified files: trunk/ChangeLog trunk/parse.y Index: ChangeLog =================================================================== --- ChangeLog (revision 53087) +++ ChangeLog (revision 53088) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun Dec 13 19:24:20 2015 Yuki Yugui Sonoda <yugui@y...> + + * parse.y (lex_state_name): Make it return the correct names. + Add new names to follow r51617; Indices ffs(2) returns are 1-origin. + Sun Dec 13 18:40:45 2015 Yuki Yugui Sonoda <yugui@y...> * parse.y: debug output of lex_state transition if PARSER_DEBUG Index: parse.y =================================================================== --- parse.y (revision 53087) +++ parse.y (revision 53088) @@ -9186,9 +9186,11 @@ id_is_var_gen(struct parser_params *pars https://github.com/ruby/ruby/blob/trunk/parse.y#L9186 static const char * lex_state_name(enum lex_state_e state) { - static const char names[][12] = { + static const char names[][13] = { + "EXPR_NONE", "EXPR_BEG", "EXPR_END", "EXPR_ENDARG", "EXPR_ENDFN", "EXPR_ARG", "EXPR_CMDARG", "EXPR_MID", "EXPR_FNAME", "EXPR_DOT", "EXPR_CLASS", + "EXPR_LABEL", "EXPR_LABELED", }; if ((unsigned)state & ~(~0u << EXPR_MAX_STATE)) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/