mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-28 01:11:15 -03:00
Revert "Merge pull request #1317 from pullreq/cpp"
This reverts commit74135c0600, reversing changes made to6d749789ce. See discussion in #1317
This commit is contained in:
@@ -506,6 +506,7 @@ parse_execution_result_t parse_execution_context_t::run_for_statement(const pars
|
||||
parse_execution_result_t parse_execution_context_t::run_switch_statement(const parse_node_t &statement)
|
||||
{
|
||||
assert(statement.type == symbol_switch_statement);
|
||||
parse_execution_result_t ret = parse_execution_success;
|
||||
const parse_node_t *matching_case_item = NULL;
|
||||
|
||||
parse_execution_result_t result = parse_execution_success;
|
||||
@@ -531,6 +532,7 @@ parse_execution_result_t parse_execution_context_t::run_switch_statement(const p
|
||||
{
|
||||
/* Store the node that failed to expand */
|
||||
report_error(switch_value_node, WILDCARD_ERR_MSG, switch_value.c_str());
|
||||
ret = parse_execution_errored;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user