aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse_tree.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-03-27 11:17:05 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-03-27 11:17:05 -0700
commit62b3ed17ba42150e1107b87b0e719cf793ae8d0f (patch)
tree2eb16f6f505416d311c2c45b9125af53f8368b2f /parse_tree.h
parent31bf50b2d495222925371556169f61c1c5a81ed7 (diff)
Teach parser_t how to parse an argument list that contains newlines, for
complete -a support. Fixes #1369
Diffstat (limited to 'parse_tree.h')
-rw-r--r--parse_tree.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/parse_tree.h b/parse_tree.h
index 5b2f717e..f9f27beb 100644
--- a/parse_tree.h
+++ b/parse_tree.h
@@ -254,7 +254,12 @@ bool parse_tree_from_string(const wcstring &str, parse_tree_flags_t flags, parse
optional_background = <empty> | <TOK_BACKGROUND>
end_command = END
-
+
+ # A freestanding_argument_list is equivalent to a normal argument list, except it may contain TOK_END (newlines, and even semicolons, for historical reasons:
+
+ freestanding_argument_list = <empty> |
+ argument freestanding_argument_list |
+ <TOK_END> freestanding_argument_list
*/
#endif