diff --git a/parse_tree.h b/parse_tree.h index 1835183df..0add08cdd 100644 --- a/parse_tree.h +++ b/parse_tree.h @@ -224,18 +224,18 @@ bool parse_tree_from_string(const wcstring &str, parse_tree_flags_t flags, parse # A block is a conditional, loop, or begin/end if_statement = if_clause else_clause end_command arguments_or_redirections_list - if_clause = job STATEMENT_TERMINATOR job_list + if_clause = job job_list else_clause = | else_continuation else_continuation = if_clause else_clause | - STATEMENT_TERMINATOR job_list + job_list - switch_statement = SWITCH STATEMENT_TERMINATOR case_item_list end_command arguments_or_redirections_list + switch_statement = SWITCH case_item_list end_command arguments_or_redirections_list case_item_list = | case_item case_item_list | case_item_list - case_item = CASE argument_list STATEMENT_TERMINATOR job_list + case_item = CASE argument_list job_list block_statement = block_header job_list end_command arguments_or_redirections_list block_header = for_header | while_header | function_header | begin_header @@ -264,8 +264,6 @@ bool parse_tree_from_string(const wcstring &str, parse_tree_flags_t flags, parse redirection = - terminator = | - optional_background = | end_command = END