aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse_execution.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-09-27 17:32:54 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-09-27 17:32:54 -0700
commitb00cbae4b52ee3dbdef7abb064004b05e6ec9e3a (patch)
tree7f5dea7d5bfb3de90a5e02054326a122182f92fa /parse_execution.h
parent4f4734fc9b6031a2cb71497d615d153b6b89012d (diff)
Fix for issue where comments are lost in function definitions
Fixes #1710
Diffstat (limited to 'parse_execution.h')
-rw-r--r--parse_execution.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/parse_execution.h b/parse_execution.h
index 10e11112..36b1cb53 100644
--- a/parse_execution.h
+++ b/parse_execution.h
@@ -97,7 +97,7 @@ private:
parse_execution_result_t run_if_statement(const parse_node_t &statement);
parse_execution_result_t run_switch_statement(const parse_node_t &statement);
parse_execution_result_t run_while_statement(const parse_node_t &header, const parse_node_t &contents);
- parse_execution_result_t run_function_statement(const parse_node_t &header, const parse_node_t &contents);
+ parse_execution_result_t run_function_statement(const parse_node_t &header, const parse_node_t &block_end_command);
parse_execution_result_t run_begin_statement(const parse_node_t &header, const parse_node_t &contents);
parse_execution_result_t determine_arguments(const parse_node_t &parent, wcstring_list_t *out_arguments, const parse_node_t **out_unmatched_wildcard_node);
@@ -111,6 +111,7 @@ private:
/* Returns the line number of the node at the given index, indexed from 0. Not const since it touches cached_lineno_offset */
int line_offset_of_node_at_offset(node_offset_t idx);
+ int line_offset_of_character_at_offset(size_t char_idx);
public:
parse_execution_context_t(const parse_node_tree_t &t, const wcstring &s, parser_t *p, int initial_eval_level);