aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse_tree.h
diff options
context:
space:
mode:
authorGravatar Sanne Wouda <sanne.wouda@gmail.com>2015-04-06 13:33:57 +0200
committerGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2015-04-13 13:23:59 +0800
commitcb1e3c501d7a0780fef2e7ccb7579ba82fa54f26 (patch)
treef58b19fd027e020a7b51eda31bd3f4e982083946 /parse_tree.h
parent9e8e5af06407378048630d4932b67a9a64b9ab2d (diff)
Simplify begin_header production
The TOK_END is swallowed by the subsequent job_list anyway.
Diffstat (limited to 'parse_tree.h')
-rw-r--r--parse_tree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse_tree.h b/parse_tree.h
index ff44d862..84114c5f 100644
--- a/parse_tree.h
+++ b/parse_tree.h
@@ -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>