mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 04:41:14 -03:00
Simplify begin_header production
The TOK_END is swallowed by the subsequent job_list anyway.
This commit is contained in:
@@ -253,7 +253,7 @@ bool parse_tree_from_string(const wcstring &str, parse_tree_flags_t flags, parse
|
||||
block_header = for_header | while_header | function_header | begin_header
|
||||
for_header = FOR var_name IN argument_list <TOK_END>
|
||||
while_header = WHILE job <TOK_END>
|
||||
begin_header = BEGIN | BEGIN <TOK_END>
|
||||
begin_header = BEGIN
|
||||
|
||||
# Functions take arguments, and require at least one (the name). No redirections allowed.
|
||||
function_header = FUNCTION argument argument_list <TOK_END>
|
||||
|
||||
Reference in New Issue
Block a user