зеркало из https://github.com/github/ruby.git
* parse.y (lex_state_name): Make it return the correct names.
Add new names to follow r51617; Indices ffs(2) returns are 1-origin. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
4e4a76e8f4
Коммит
af64b09514
|
@ -1,3 +1,8 @@
|
|||
Sun Dec 13 19:24:20 2015 Yuki Yugui Sonoda <yugui@yugui.jp>
|
||||
|
||||
* 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@yugui.jp>
|
||||
|
||||
* parse.y: debug output of lex_state transition if PARSER_DEBUG
|
||||
|
|
4
parse.y
4
parse.y
|
@ -9186,9 +9186,11 @@ id_is_var_gen(struct parser_params *parser, ID id)
|
|||
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))
|
||||
|
|
Загрузка…
Ссылка в новой задаче