diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-11-02 13:11:27 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-11-02 13:11:27 -0800 |
commit | c31ad3ed07a88f4dad5a998f005fb8c195fd1eb2 (patch) | |
tree | 078e45a3ebc4e4c71b76ade89c6e4ed11760d30f /parse_tree.h | |
parent | c33a3862ccc1e694ecf31f6d0b6cf1a45d6455f7 (diff) |
Disallow backgrounding in conditionals and before and/or bool statements
Fixes #1136
Diffstat (limited to 'parse_tree.h')
-rw-r--r-- | parse_tree.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/parse_tree.h b/parse_tree.h index 8a86e70b..59739af4 100644 --- a/parse_tree.h +++ b/parse_tree.h @@ -184,11 +184,13 @@ public: /* Given a job, return all of its statements. These are 'specific statements' (e.g. symbol_decorated_statement, not symbol_statement) */ parse_node_list_t specific_statements_for_job(const parse_node_t &job) const; + /* Returns the boolean type for a boolean node */ + static enum parse_bool_statement_type_t statement_boolean_type(const parse_node_t &node); + /* Given a job, return whether it should be backgrounded, because it has a & specifier */ bool job_should_be_backgrounded(const parse_node_t &job) const; }; - /* The big entry point. Parse a string, attempting to produce a tree for the given goal type */ bool parse_tree_from_string(const wcstring &str, parse_tree_flags_t flags, parse_node_tree_t *output, parse_error_list_t *errors, parse_token_type_t goal = symbol_job_list); |