aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse_tree.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-10-07 03:56:09 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-10-07 03:56:09 -0700
commit4f718e83b343cd2cf49c801968dd36cbce84a772 (patch)
treec0162410d984db2881ef199e80b5c5ccdac9e448 /parse_tree.h
parent20ccda69f4319cadbfb242f139e48a84699b503d (diff)
Syntax highlighting now correctly handles cd
Diffstat (limited to 'parse_tree.h')
-rw-r--r--parse_tree.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/parse_tree.h b/parse_tree.h
index 6fcbde0d..0355117f 100644
--- a/parse_tree.h
+++ b/parse_tree.h
@@ -217,6 +217,9 @@ public:
/* Find all the nodes of a given type underneath a given node */
typedef std::vector<const parse_node_t *> parse_node_list_t;
parse_node_list_t find_nodes(const parse_node_t &parent, parse_token_type_t type) const;
+
+ /* Indicate if the given argument_list or arguments_or_redirections_list is a root list, or has a parent */
+ bool argument_list_is_root(const parse_node_t &node) const;
};