* expression.h (parse_expression_for_completion): Rename
from parse_field_expression. (parse_completion): Rename from in_parse_field. * c-exp.y (lex_one_token): Update. * completer.c (expression_completer): Update. * go-exp.y (lex_one_token): Update. * p-exp.y (yylex): Update. * parse.c (parse_completion): Rename from in_parse_field. (parse_exp_in_context): Update. (parse_expression_for_completion): Rename from parse_field_expression. Update.
This commit is contained in:
parent
4fc5d43ea6
commit
155da5173d
7 changed files with 33 additions and 20 deletions
|
@ -1124,7 +1124,7 @@ lex_one_token (void)
|
|||
/* Might be a floating point number. */
|
||||
if (lexptr[1] < '0' || lexptr[1] > '9')
|
||||
{
|
||||
if (in_parse_field)
|
||||
if (parse_completion)
|
||||
last_was_structop = 1;
|
||||
goto symbol; /* Nope, must be a symbol. */
|
||||
}
|
||||
|
@ -1311,7 +1311,7 @@ lex_one_token (void)
|
|||
if (*tokstart == '$')
|
||||
return DOLLAR_VARIABLE;
|
||||
|
||||
if (in_parse_field && *lexptr == '\0')
|
||||
if (parse_completion && *lexptr == '\0')
|
||||
saw_name_at_eof = 1;
|
||||
return NAME;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue